AP_HAL: fix compilation for sitl-on-hw

This commit is contained in:
Peter Barker 2022-05-23 12:35:33 +10:00 committed by Andrew Tridgell
parent ccbe62589e
commit 0f48557ec2

View File

@ -63,7 +63,7 @@ public:
void set_gps0(SITL::GPS *_gps) { gps[0] = _gps; } void set_gps0(SITL::GPS *_gps) { gps[0] = _gps; }
#endif #endif
uint16_t pwm_output[16]; // was SITL_NUM_CHANNELS uint16_t pwm_output[32]; // was SITL_NUM_CHANNELS
private: private:
void _set_param_default(const char *parm); void _set_param_default(const char *parm);
@ -212,6 +212,8 @@ private:
const char *_home_str; const char *_home_str;
uint32_t wind_start_delay_micros;
#if HAL_SIM_GPS_ENABLED #if HAL_SIM_GPS_ENABLED
// simulated GPS devices // simulated GPS devices
SITL::GPS *gps[2]; // constrained by # of parameter sets SITL::GPS *gps[2]; // constrained by # of parameter sets