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 PIOS_L3GD20_MAX_DOWNSAMPLES to PIOS_L3GD20_QUEUESIZE and raised 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 increased value to 2
pios_lsm303: removed queue registration for consistency with the rest of the project
pios_lsm303: removed commented code
pios_mpu60x0: renamed MAX_DOWNSAMPLE to MAX_QUEUESIZE and set it to 2
mpu60x0, lsm303, l3gd20: removed fifo, added proper handling of dev->configured
mpu_60x0, lsm303, l3gd20: fixed formatting using astyle
mpu6050, lsm303: removed dev->configured in favor of a validate in irq entry
sensors: don't block on accel, reuse last sample instead
mpu60x0: fixed a casting bug when inverting sensor data
mpu_60x0, lsm303, l3gd20: fixed formatting using astyle (* and & to name, linux style)
sensors: fake accel data without calling AccelsGet()
all mpu60x0 init: removed fifo configuration, disabled 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