AP_NavEKF3: convert code_gen.py to ftype

This commit is contained in:
Andrew Tridgell 2021-07-12 09:37:16 +10:00
parent 44f098c86d
commit 98fb4fcbe7

View File

@ -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)