mirror of https://github.com/ArduPilot/ardupilot
AP_Declination: generate tables with float designator
This commit is contained in:
parent
8425a58585
commit
57b33acb89
|
@ -19,7 +19,7 @@ def write_table(f,name, table):
|
||||||
for i in range(NUM_LAT):
|
for i in range(NUM_LAT):
|
||||||
f.write(" {")
|
f.write(" {")
|
||||||
for j in range(NUM_LON):
|
for j in range(NUM_LON):
|
||||||
f.write("%.5f" % table[i][j])
|
f.write("%.5ff" % table[i][j])
|
||||||
if j != NUM_LON-1:
|
if j != NUM_LON-1:
|
||||||
f.write(",")
|
f.write(",")
|
||||||
f.write("}")
|
f.write("}")
|
||||||
|
|
Loading…
Reference in New Issue