mirror of https://github.com/ArduPilot/ardupilot
AP_DAL: create and use AP_OPTICALFLOW_ENABLED
Including a define for each backend.
This commit is contained in:
parent
268032e640
commit
ca8436ba5d
|
@ -66,7 +66,9 @@ void AP_DAL::start_frame(AP_DAL::FrameType frametype)
|
|||
_RFRN.ahrs_airspeed_sensor_enabled = AP::ahrs().airspeed_sensor_enabled();
|
||||
_RFRN.available_memory = hal.util->available_memory();
|
||||
_RFRN.ahrs_trim = ahrs.get_trim();
|
||||
#if AP_OPTICALFLOW_ENABLED
|
||||
_RFRN.opticalflow_enabled = AP::opticalflow() && AP::opticalflow()->enabled();
|
||||
#endif
|
||||
_RFRN.wheelencoder_enabled = AP::wheelencoder() && (AP::wheelencoder()->num_sensors() > 0);
|
||||
WRITE_REPLAY_BLOCK_IFCHANGED(RFRN, _RFRN, old);
|
||||
|
||||
|
|
Loading…
Reference in New Issue