mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 15:23:57 -04:00
AP_Mount: removed native_millis/micros
This commit is contained in:
parent
85c2c3609b
commit
3752750f0a
@ -470,7 +470,7 @@ void AP_Mount_Xacti::send_gimbal_control(uint8_t mode, int16_t pitch_cd, int16_t
|
||||
}
|
||||
|
||||
// send at no faster than 5hz
|
||||
const uint32_t now_ms = AP_HAL::native_millis();
|
||||
const uint32_t now_ms = AP_HAL::millis();
|
||||
if (now_ms - last_send_gimbal_control_ms < 200) {
|
||||
return;
|
||||
}
|
||||
@ -494,7 +494,7 @@ void AP_Mount_Xacti::send_copter_att_status()
|
||||
}
|
||||
|
||||
// send at no faster than 5hz
|
||||
const uint32_t now_ms = AP_HAL::native_millis();
|
||||
const uint32_t now_ms = AP_HAL::millis();
|
||||
if (now_ms - last_send_copter_att_status_ms < 100) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user