mirror of https://github.com/ArduPilot/ardupilot
AP_NavEKF3: convert code_gen.py to ftype
This commit is contained in:
parent
7bb971f07d
commit
87b4ca47e8
|
@ -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…
Reference in New Issue