mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 20:48:33 -04:00
AP_RangeFinder: fixed non-MSP build
This commit is contained in:
parent
f3a0ba0138
commit
17173871a4
@ -32,7 +32,9 @@ public:
|
|||||||
virtual void update() = 0;
|
virtual void update() = 0;
|
||||||
|
|
||||||
virtual void handle_msg(const mavlink_message_t &msg) { return; }
|
virtual void handle_msg(const mavlink_message_t &msg) { return; }
|
||||||
|
#if HAL_MSP_ENABLED
|
||||||
virtual void handle_msp(const MSP::msp_rangefinder_sensor_t &pkt) { return; }
|
virtual void handle_msp(const MSP::msp_rangefinder_sensor_t &pkt) { return; }
|
||||||
|
#endif
|
||||||
|
|
||||||
enum Rotation orientation() const { return (Rotation)params.orientation.get(); }
|
enum Rotation orientation() const { return (Rotation)params.orientation.get(); }
|
||||||
uint16_t distance_cm() const { return state.distance_cm; }
|
uint16_t distance_cm() const { return state.distance_cm; }
|
||||||
|
Loading…
Reference in New Issue
Block a user