Esempio n. 1
0
 /**
  * Create a Pigeon object that communciates with Pigeon through the
  * Gadgeteer ribbon cable connected to a Talon on CAN Bus.
  *
  * @param talonSrx
  *            Object for the TalonSRX connected via ribbon cable.
  */
 public PigeonIMU(MotorControl.CAN.TalonSRX talonSrx)
 {
     m_deviceNumber = talonSrx.GetDeviceID();
     _ll            = new PigeonIMU_LowLevel(0x02000000 | m_deviceNumber);
 }
Esempio n. 2
0
 /**
  * Create a Pigeon object that communicates with Pigeon on CAN Bus.
  *
  * @param deviceNumber
  *            CAN Device Id of Pigeon [0,62]
  */
 public PigeonIMU(int deviceNumber)
 {
     _ll            = new PigeonIMU_LowLevel(0x15000000 | deviceNumber);
     m_deviceNumber = deviceNumber;
 }