コード例 #1
0
 /**
  * Constructor for the PneumaticControlModule device.
  * @param deviceNumber The CAN ID of the PCM
  */
 public PneumaticControlModule(int deviceNumber)
 {
     m_impl = new CTRE.LowLevel_Pcm((ushort)deviceNumber);
     m_impl.SetCloseLoopEnable(true);
 }
コード例 #2
0
 /**
  * Start the compressor running in closed loop control mode Use the method in
  * cases where you would like to manually stop and start the compressor for
  * applications such as conserving battery or making sure that the compressor
  * motor doesn't start during critical operations.
  */
 public void StartCompressor()
 {
     HandleErr(m_impl.SetCloseLoopEnable(true));
 }
コード例 #3
0
 /**
  * Constructor for the PneumaticControlModule device.
  * @param deviceNumber The CAN ID of the PCM
  */
 public PneumaticControlModule(int deviceNumber)
 {
     m_impl = new CTRE.LowLevel_Pcm((ushort)deviceNumber);
     m_impl.SetCloseLoopEnable(true);
 }