mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-25 10:08:28 -04:00
Copter: adapt to new send_proximity API
This commit is contained in:
parent
8abcb7a0e3
commit
88aa1e447a
@ -416,8 +416,7 @@ bool GCS_MAVLINK_Copter::try_send_message(enum ap_message id)
|
|||||||
send_distance_sensor_downward(copter.rangefinder);
|
send_distance_sensor_downward(copter.rangefinder);
|
||||||
#endif
|
#endif
|
||||||
#if PROXIMITY_ENABLED == ENABLED
|
#if PROXIMITY_ENABLED == ENABLED
|
||||||
CHECK_PAYLOAD_SIZE(DISTANCE_SENSOR);
|
send_proximity(copter.g2.proximity);
|
||||||
send_proximity(copter.g2.proximity, comm_get_txspace(chan) / (packet_overhead()+9));
|
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user