Browse Source

AP_NavEKF3: convert code_gen.py to ftype

c415-sdk
Andrew Tridgell 4 years ago committed by Randy Mackay
parent
commit
87b4ca47e8
  1. 2
      libraries/AP_NavEKF3/derivation/code_gen.py

2
libraries/AP_NavEKF3/derivation/code_gen.py

@ -19,7 +19,7 @@ class CodeGenerator: @@ -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)

Loading…
Cancel
Save