mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
Sub: move Airspeed to AP_Vehicle
This commit is contained in:
committed by
Andrew Tridgell
parent
ee273da50d
commit
a765bb048d
+4
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user