Sub: move Airspeed to AP_Vehicle

This commit is contained in:
Joshua Henderson
2022-01-19 18:21:32 +11:00
committed by Andrew Tridgell
parent ee273da50d
commit a765bb048d
6 changed files with 20 additions and 21 deletions
+4 -2
View File
@@ -85,6 +85,10 @@ void Sub::init_ardupilot()
AP::compass().set_log_bit(MASK_LOG_COMPASS);
AP::compass().init();
#if AP_AIRSPEED_ENABLED
airspeed.set_log_bit(MASK_LOG_IMU);
#endif
#if AP_OPTICALFLOW_ENABLED
// initialise optical flow sensor
optflow.init(MASK_LOG_OPTFLOW);
@@ -155,8 +159,6 @@ void Sub::init_ardupilot()
g2.scripting.init();
#endif // AP_SCRIPTING_ENABLED
g2.airspeed.init();
// we don't want writes to the serial port to cause us to pause
// mid-flight, so set the serial ports non-blocking once we are
// ready to fly