From 87b4ca47e889e61b1b08dba1de44f9c8f105b41a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 12 Jul 2021 09:37:16 +1000 Subject: [PATCH] AP_NavEKF3: convert code_gen.py to ftype --- libraries/AP_NavEKF3/derivation/code_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_NavEKF3/derivation/code_gen.py b/libraries/AP_NavEKF3/derivation/code_gen.py index e302067ee4..9e193b65ee 100644 --- a/libraries/AP_NavEKF3/derivation/code_gen.py +++ b/libraries/AP_NavEKF3/derivation/code_gen.py @@ -19,7 +19,7 @@ class CodeGenerator: def write_subexpressions(self,subexpressions): write_string = "" for item in subexpressions: - write_string = write_string + "const float " + str(item[0]) + " = " + self.get_ccode(item[1]) + ";\n" + write_string = write_string + "const ftype " + str(item[0]) + " = " + self.get_ccode(item[1]) + ";\n" write_string = write_string + "\n\n" self.file.write(write_string)