mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 09:38:29 -04:00
ArduCopter - init_compass - fixed HIL build issue
This commit is contained in:
parent
3d85f99546
commit
3cb74cb459
@ -88,6 +88,8 @@ static void zero_airspeed(void)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // HIL_MODE != HIL_MODE_ATTITUDE
|
||||||
|
|
||||||
static void init_compass()
|
static void init_compass()
|
||||||
{
|
{
|
||||||
compass.set_orientation(MAG_ORIENTATION); // set compass's orientation on aircraft
|
compass.set_orientation(MAG_ORIENTATION); // set compass's orientation on aircraft
|
||||||
@ -110,8 +112,6 @@ static void init_optflow()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // HIL_MODE != HIL_MODE_ATTITUDE
|
|
||||||
|
|
||||||
static void read_battery(void)
|
static void read_battery(void)
|
||||||
{
|
{
|
||||||
battery_voltage1 = BATTERY_VOLTAGE(analogRead(BATTERY_PIN1)) * .1 + battery_voltage1 * .9;
|
battery_voltage1 = BATTERY_VOLTAGE(analogRead(BATTERY_PIN1)) * .1 + battery_voltage1 * .9;
|
||||||
|
Loading…
Reference in New Issue
Block a user