From 69cc4d7e7fee978ffde258a6887ce1e58bf7a5e2 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sat, 3 Dec 2016 23:53:50 -0500 Subject: [PATCH] rc.sensors fix indentation --- ROMFS/px4fmu_common/init.d/rc.sensors | 66 +++++++++++++-------------- 1 file changed, 32 insertions(+), 34 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d/rc.sensors b/ROMFS/px4fmu_common/init.d/rc.sensors index 5f2b306339..db7409b04d 100644 --- a/ROMFS/px4fmu_common/init.d/rc.sensors +++ b/ROMFS/px4fmu_common/init.d/rc.sensors @@ -11,46 +11,44 @@ then else if ver hwcmp AEROFC_V1 - # Aero FC uses separate driver then + # Aero FC uses separate driver else + if ver hwcmp CRAZYFLIE + then + # Crazyflie uses separate driver + else + # Configure all I2C buses to 100 KHz as they + # are all external or slow + fmu i2c 1 100000 + fmu i2c 2 100000 + fi - if ver hwcmp CRAZYFLIE - then - # Crazyflie uses separate driver - else + if ver hwcmp PX4FMU_V4 + then + # We know there are sketchy boards out there + # as chinese companies produce Pixracers without + # fully understanding the critical parts of the + # schematic and BOM, leading to sensor brownouts + # on boot. Original Pixracers following the + # open hardware design do not require this. + fmu sensor_reset 50 + fi - # Configure all I2C buses to 100 KHz as they - # are all external or slow - fmu i2c 1 100000 - fmu i2c 2 100000 + # External SPI + if ms5611 -S start + then + fi - fi - - if ver hwcmp PX4FMU_V4 - then - # We know there are sketchy boards out there - # as chinese companies produce Pixracers without - # fully understanding the critical parts of the - # schematic and BOM, leading to sensor brownouts - # on boot. Original Pixracers following the - # open hardware design do not require this. - fmu sensor_reset 50 - fi - - if ms5611 -S start - then - fi - - if ms5611 -s start - then - fi - - # Blacksheep telemetry - if bst start - then - fi + # Internal SPI + if ms5611 -s start + then + fi + # Blacksheep telemetry + if bst start + then + fi fi fi