File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ int16_t GCS_MAVLINK_Rover::vfr_hud_throttle() const
155
155
return rover.g2 .motors .get_throttle ();
156
156
}
157
157
158
- #if AP_RANGEFINDER_ENABLED
158
+ #if AP_MAVLINK_MSG_RANGEFINDER_SENDING_ENABLED
159
159
void GCS_MAVLINK_Rover::send_rangefinder () const
160
160
{
161
161
float distance = 0 ;
@@ -185,7 +185,9 @@ void GCS_MAVLINK_Rover::send_rangefinder() const
185
185
distance,
186
186
voltage);
187
187
}
188
+ #endif // AP_MAVLINK_MSG_RANGEFINDER_SENDING_ENABLED
188
189
190
+ #if AP_RANGEFINDER_ENABLED
189
191
void GCS_MAVLINK_Rover::send_water_depth ()
190
192
{
191
193
if (!HAVE_PAYLOAD_SPACE (chan, WATER_DEPTH)) {
Original file line number Diff line number Diff line change @@ -57,9 +57,11 @@ class GCS_MAVLINK_Rover : public GCS_MAVLINK
57
57
58
58
int16_t vfr_hud_throttle () const override ;
59
59
60
- #if AP_RANGEFINDER_ENABLED
60
+ #if AP_MAVLINK_MSG_RANGEFINDER_SENDING_ENABLED
61
61
void send_rangefinder () const override ;
62
+ #endif // AP_MAVLINK_MSG_RANGEFINDER_SENDING_ENABLED
62
63
64
+ #if AP_RANGEFINDER_ENABLED
63
65
// send WATER_DEPTH - metres and temperature
64
66
void send_water_depth ();
65
67
// state variable for the last rangefinder we sent a WATER_DEPTH
You can’t perform that action at this time.
0 commit comments