From 2ae57f8861db1888c78e1d8af5535a4fcf866076 Mon Sep 17 00:00:00 2001 From: murata Date: Sat, 23 Jan 2021 23:52:52 +0900 Subject: [PATCH] Rover: Change delay method to HAL scheduler's delay --- Rover/Rover.h | 3 --- Rover/system.cpp | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Rover/Rover.h b/Rover/Rover.h index d2ccdd4dc3..ff081c9b06 100644 --- a/Rover/Rover.h +++ b/Rover/Rover.h @@ -298,9 +298,6 @@ private: bool set_home(const Location& loc, bool lock) WARN_IF_UNUSED; void update_home(); - // compat.cpp - void delay(uint32_t ms); - // crash_check.cpp void crash_check(); diff --git a/Rover/system.cpp b/Rover/system.cpp index 3ea0bd28b1..bc8471705d 100644 --- a/Rover/system.cpp +++ b/Rover/system.cpp @@ -137,7 +137,7 @@ void Rover::startup_ground(void) #if(GROUND_START_DELAY > 0) gcs().send_text(MAV_SEVERITY_NOTICE, " With delay"); - delay(GROUND_START_DELAY * 1000); + hal.scheduler->delay(GROUND_START_DELAY * 1000); #endif // IMU ground start