mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-02 21:37:24 +08:00
some ints should be floats (#2184)
This commit is contained in:
committed by
Gautier Hattenberger
parent
85c2b23c9f
commit
d2079a780f
@@ -18,14 +18,14 @@ from settings_xml_parse import PaparazziACSettings
|
|||||||
class aircraft:
|
class aircraft:
|
||||||
def __init__(self, ac_id):
|
def __init__(self, ac_id):
|
||||||
self.id = ac_id
|
self.id = ac_id
|
||||||
self.XY = np.array([-999, -999])
|
self.XY = np.array([-999.0, -999.0])
|
||||||
self.XYc = np.array([-999, -999])
|
self.XYc = np.array([-999.0, -999.0])
|
||||||
self.a = -999
|
self.a = -999.0
|
||||||
self.b = -999
|
self.b = -999.0
|
||||||
|
|
||||||
self.s = -999
|
self.s = -999
|
||||||
|
|
||||||
self.sigma = -999
|
self.sigma = -999.0
|
||||||
|
|
||||||
self.a_index = -999
|
self.a_index = -999
|
||||||
self.b_index = -999
|
self.b_index = -999
|
||||||
@@ -61,10 +61,10 @@ def formation(B, ds, radius, k):
|
|||||||
|
|
||||||
waiting_for_msgs = 0
|
waiting_for_msgs = 0
|
||||||
for ac in list_aircraft:
|
for ac in list_aircraft:
|
||||||
if ac.a == -999:
|
if ac.a == -999.0:
|
||||||
print("Waiting for GVF msg of aircraft ", ac.id)
|
print("Waiting for GVF msg of aircraft ", ac.id)
|
||||||
waiting_for_msgs = 1
|
waiting_for_msgs = 1
|
||||||
if ac.XY[0] == -999:
|
if ac.XY[0] == -999.0:
|
||||||
print("Waiting for NAV msg of aircraft ", ac.id)
|
print("Waiting for NAV msg of aircraft ", ac.id)
|
||||||
waiting_for_msgs = 1
|
waiting_for_msgs = 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user