Esempio n. 1
0
// Read all the values and store into the device
static void read(SENSOR* sensor){
	LPRY530AL* device = (LPRY530AL*)sensor;
	device->gyro.x_axis_degrees_per_second = __read_channel(device->x_pin, device->slow, device->x_zero);
	device->gyro.y_axis_degrees_per_second = __read_channel(device->y_pin, device->slow, device->y_zero);
	device->gyro.z_axis_degrees_per_second = __read_channel(device->z_pin, device->slow, device->z_zero);
}
Esempio n. 2
0
// Read all the values and store into the device
static void __ly530alh_read(SENSOR* sensor){
	LY530ALH* device = (LY530ALH*)sensor;
	device->gyro.z_axis_degrees_per_second = __read_channel(device->z_pin, device->slow, device->z_zero);
}
Esempio n. 3
0
// Read all the values and store into the device
static void __idg300_read(SENSOR* sensor){
	IDG300* device = (IDG300*)sensor;
	device->gyro.x_axis_degrees_per_second = __read_channel(device->x_pin, device->x_zero);
	device->gyro.y_axis_degrees_per_second = __read_channel(device->y_pin, device->y_zero);
}