mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 04:28:30 -04:00
Copter: rename to EXPECT_DELAY_MS()
This commit is contained in:
parent
ba9b92c4af
commit
f55d9140e2
@ -124,7 +124,7 @@ MAV_RESULT Copter::mavlink_compassmot(mavlink_channel_t chan)
|
|||||||
interference_pct[i] = 0.0f;
|
interference_pct[i] = 0.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
EXPECT_DELAY(hal, 5000);
|
EXPECT_DELAY_MS(5000);
|
||||||
|
|
||||||
// enable motors and pass through throttle
|
// enable motors and pass through throttle
|
||||||
init_rc_out();
|
init_rc_out();
|
||||||
@ -137,7 +137,7 @@ MAV_RESULT Copter::mavlink_compassmot(mavlink_channel_t chan)
|
|||||||
|
|
||||||
// main run while there is no user input and the compass is healthy
|
// main run while there is no user input and the compass is healthy
|
||||||
while (command_ack_start == command_ack_counter && compass.healthy() && motors->armed()) {
|
while (command_ack_start == command_ack_counter && compass.healthy() && motors->armed()) {
|
||||||
EXPECT_DELAY(hal, 5000);
|
EXPECT_DELAY_MS(5000);
|
||||||
|
|
||||||
// 50hz loop
|
// 50hz loop
|
||||||
if (millis() - last_run_time < 20) {
|
if (millis() - last_run_time < 20) {
|
||||||
|
@ -25,7 +25,7 @@ void Copter::motor_test_output()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
EXPECT_DELAY(hal, 2000);
|
EXPECT_DELAY_MS(2000);
|
||||||
|
|
||||||
// check for test timeout
|
// check for test timeout
|
||||||
uint32_t now = AP_HAL::millis();
|
uint32_t now = AP_HAL::millis();
|
||||||
@ -148,7 +148,7 @@ MAV_RESULT Copter::mavlink_motor_test_start(mavlink_channel_t chan, uint8_t moto
|
|||||||
// start test
|
// start test
|
||||||
ap.motor_test = true;
|
ap.motor_test = true;
|
||||||
|
|
||||||
EXPECT_DELAY(hal, 3000);
|
EXPECT_DELAY_MS(3000);
|
||||||
// enable and arm motors
|
// enable and arm motors
|
||||||
if (!motors->armed()) {
|
if (!motors->armed()) {
|
||||||
init_rc_out();
|
init_rc_out();
|
||||||
|
Loading…
Reference in New Issue
Block a user