mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-01-13 15:48:13 -05:00
Fix Issue #106
This commit is contained in:
@@ -22,13 +22,13 @@ class Quadrotor():
|
||||
self.z_data = []
|
||||
self.show_animation = show_animation
|
||||
|
||||
self.update_pose(x, y, z, roll, pitch, yaw)
|
||||
|
||||
if self.show_animation:
|
||||
plt.ion()
|
||||
fig = plt.figure()
|
||||
self.ax = fig.add_subplot(111, projection='3d')
|
||||
|
||||
self.update_pose(x, y, z, roll, pitch, yaw)
|
||||
|
||||
def update_pose(self, x, y, z, roll, pitch, yaw):
|
||||
self.x = x
|
||||
self.y = y
|
||||
|
||||
Reference in New Issue
Block a user