mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-01 21:07:40 +08:00
gvf and python3 ubuntu 20.04 (#2588)
* compatible python3 ubuntu 20.04 * python3 by default
This commit is contained in:
committed by
GitHub
parent
3c5d6f17ef
commit
82a81cbf24
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import wx
|
import wx
|
||||||
@@ -18,7 +18,7 @@ class MessagesApp(wx.App):
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
if len(sys.argv) != 2:
|
if len(sys.argv) != 2:
|
||||||
print "Usage: gvfApp id_aircraft"
|
print ("Usage: gvfApp id_aircraft")
|
||||||
return
|
return
|
||||||
id_ac = int(sys.argv[1])
|
id_ac = int(sys.argv[1])
|
||||||
application = MessagesApp(0, id_ac)
|
application = MessagesApp(0, id_ac)
|
||||||
|
|||||||
@@ -279,7 +279,7 @@ class map2d:
|
|||||||
a3d.plot([XY[0]], [XY[1]], [altitude], marker='o', markerfacecolor='r', markeredgecolor='r')
|
a3d.plot([XY[0]], [XY[1]], [altitude], marker='o', markerfacecolor='r', markeredgecolor='r')
|
||||||
a3d.plot([traj.wpoint[0]], [traj.wpoint[1]], [traj.wpoint[2]], marker='x', markerfacecolor='r', markeredgecolor='r')
|
a3d.plot([traj.wpoint[0]], [traj.wpoint[1]], [traj.wpoint[2]], marker='x', markerfacecolor='r', markeredgecolor='r')
|
||||||
|
|
||||||
a3d.axis('equal')
|
#a3d.axis('equal')
|
||||||
if traj.deltaz < 0:
|
if traj.deltaz < 0:
|
||||||
a3d.set_zlim(traj.zo+1.5*traj.deltaz, traj.zo-1.5*traj.deltaz)
|
a3d.set_zlim(traj.zo+1.5*traj.deltaz, traj.zo-1.5*traj.deltaz)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user