NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
bool SetSensorDIGyroEx ( const byte  port,
byte  scale,
byte  odr,
byte  bw 
)
inline

SetSensorDIGyroEx function.

Configure DIGyro device on the specified port with the specified scale, output data rate, and bandwidth.

Parameters
portThe port to which the Dexter Industries IMU Gyro sensor is attached. See the Input port constants group. You may use a constant or a variable.
scaleThe full scale of the device (250dps, 500dps, or 2000dps). See the Dexter Industries IMU Gyro control register 4 constants group. You may use a constant or a variable.
odrThe output data rate of the device (100hz, 200hz, 400hz, or 800hz). See the Dexter Industries IMU Gyro control register 1 constants group. You may use a constant or a variable.
bwThe bandwidth of the device. See the Dexter Industries IMU Gyro control register 1 constants group. You may use a constant or a variable.
Returns
The boolean function call result.
Examples:
ex_digyro.nxc.