mirror of https://github.com/ArduPilot/ardupilot
AP_Vehicle: provide dummy implementations of log structure methods
this allows a vehicle that doesnt' want to use logging to just ignore it, rather than provide dummy methods
This commit is contained in:
parent
bdb84181bc
commit
a158b4f7b9
|
@ -320,10 +320,11 @@ protected:
|
||||||
|
|
||||||
#if HAL_LOGGING_ENABLED
|
#if HAL_LOGGING_ENABLED
|
||||||
AP_Logger logger;
|
AP_Logger logger;
|
||||||
|
AP_Int32 bitmask_unused;
|
||||||
// method supplied by vehicle to provide log bitmask:
|
// method supplied by vehicle to provide log bitmask:
|
||||||
virtual const AP_Int32 &get_log_bitmask() = 0;
|
virtual const AP_Int32 &get_log_bitmask() { return bitmask_unused; }
|
||||||
virtual const struct LogStructure *get_log_structures() const = 0;
|
virtual const struct LogStructure *get_log_structures() const { return nullptr; }
|
||||||
virtual uint8_t get_num_log_structures() const = 0;
|
virtual uint8_t get_num_log_structures() const { return 0; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if AP_RSSI_ENABLED
|
#if AP_RSSI_ENABLED
|
||||||
|
|
Loading…
Reference in New Issue