AP_NavEKF3: convert code_gen.py to ftype

This commit is contained in:
Andrew Tridgell 2021-07-12 09:37:16 +10:00 committed by Randy Mackay
parent 7bb971f07d
commit 87b4ca47e8
1 changed files with 1 additions and 1 deletions

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)