mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-12 01:23:56 -03:00
GCS_MAVLink: add floating-point-constant designators
This commit is contained in:
parent
3b33f4ca4d
commit
31daaf9933
@ -1326,7 +1326,7 @@ bool GCS_MAVLINK::set_ap_message_interval(enum ap_message id, uint16_t interval_
|
|||||||
// send messages out at most 80% of main loop rate
|
// send messages out at most 80% of main loop rate
|
||||||
if (interval_ms != 0 &&
|
if (interval_ms != 0 &&
|
||||||
interval_ms*800 < AP::scheduler().get_loop_period_us()) {
|
interval_ms*800 < AP::scheduler().get_loop_period_us()) {
|
||||||
interval_ms = AP::scheduler().get_loop_period_us()/800.0;
|
interval_ms = AP::scheduler().get_loop_period_us()/800.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if it's a specially-handled message:
|
// check if it's a specially-handled message:
|
||||||
|
Loading…
Reference in New Issue
Block a user