pios_l3gd20: fixed formatting
That was too crappy so i couldn't resist.
For the record, i used astyle with the following options to reformat:
--suffix=none --lineend=linux --mode=c --align-pointer=type --align-reference=type --indent=tab=4 --style=allman --break-blocks --pad-oper --pad-header --unpad-paren
pios_l3gd20: replaced all occurences of MPU60X0 by L3GD20
pios_l3gd20: renamed MAX_DOWNSAMPLES to QUEUESIZE and set it to 2
pios_l3gd20: removed unused variables and header
pios_l3gd20: disabled fifo
pios_l3gd20: moved const keyword in front of type
Changed the LSM303 config behaviour. Stopped it setting up the FIFO, as that seems to limit Accel output to 10-bit.
Also modified Accel Set Range, so that it also sets the 'high resolution' bit.
Moved setting of the High Resolution bit of the accel, into the accel configuration.
Changed behaviour of the accel set range function, to read current register, reset the scale bits,
then to OR the new scale bits.
pios_lsm303: renamed MAX_DOWNSAMPLE to MAX_QUEUESIZE and set it to 2
pios_lsm303: removed queue registration for consistency
pios_lsm303: removed commented code
pios_mpu60x0: renamed MAX_DOWNSAMPLE to MAX_QUEUESIZE and set it to 2
mpu60x0, lsm303, l3gd20: removed fifo, fixed handling of dev->configured
mpu60x0, lsm303, l3gd20: fixed formatting using astyle
mpu6050, lsm303: removed dev->configured
sensors: don't block on accel, reuse last sample instead
mpu60x0: fixed a casting bug when inverting sensor data
mpu60x0, lsm303, l3gd20: fixed formatting to linux style
sensors: fake accel data without calling AccelsGet()
all mpu60x0 init: removed fifo, use PLL_Z_CLK
Rationale for PLL_Z_CLK is a comment in PX4 mpu6000 driver which says that z has better performance:
https://github.com/PX4/Firmware/blob/master/apps/drivers/mpu6000/mpu6000.cpp#L373