Browse Source

Plane: fixed APM1 build

master
Andrew Tridgell 10 years ago
parent
commit
441d96c946
  1. 4
      ArduPlane/Plane.h
  2. 4
      ArduPlane/system.cpp

4
ArduPlane/Plane.h

@ -170,10 +170,6 @@ private: @@ -170,10 +170,6 @@ private:
AP_Baro barometer;
Compass compass;
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1
AP_ADC_ADS7844 apm1_adc;
#endif
AP_InertialSensor ins;
// Inertial Navigation EKF

4
ArduPlane/system.cpp

@ -76,6 +76,10 @@ static void failsafe_check_static() @@ -76,6 +76,10 @@ static void failsafe_check_static()
plane.failsafe_check();
}
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1
AP_ADC_ADS7844 apm1_adc;
#endif
void Plane::init_ardupilot()
{
// initialise serial port

Loading…
Cancel
Save