From 8847ff806077fe8f8712cd56c2cced26795dbd27 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 19 Oct 2022 15:14:51 +1100 Subject: [PATCH] Rover: fix for float16 --- Rover/mode_auto.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rover/mode_auto.cpp b/Rover/mode_auto.cpp index 68cbdc35a4..41c6920e7c 100644 --- a/Rover/mode_auto.cpp +++ b/Rover/mode_auto.cpp @@ -889,8 +889,8 @@ void ModeAuto::do_nav_script_time(const AP_Mission::Mission_Command& cmd) nav_scripting.start_ms = millis(); nav_scripting.command = cmd.content.nav_script_time.command; nav_scripting.timeout_s = cmd.content.nav_script_time.timeout_s; - nav_scripting.arg1 = cmd.content.nav_script_time.arg1; - nav_scripting.arg2 = cmd.content.nav_script_time.arg2; + nav_scripting.arg1 = cmd.content.nav_script_time.arg1.get(); + nav_scripting.arg2 = cmd.content.nav_script_time.arg2.get(); } else { // for safety we set nav_scripting to done to protect against the mission getting stuck nav_scripting.done = true;