From fd2bbc9e4cd8c9b97a66956e799bdc65c7aeeaf0 Mon Sep 17 00:00:00 2001 From: Atsushi Sakai Date: Tue, 28 Aug 2018 20:39:59 +0900 Subject: [PATCH] fix test --- .../drone_3d_trajectory_following/Quadrotor.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/AerialNavigation/drone_3d_trajectory_following/Quadrotor.py b/AerialNavigation/drone_3d_trajectory_following/Quadrotor.py index 7a4ab7e6..de8308ff 100644 --- a/AerialNavigation/drone_3d_trajectory_following/Quadrotor.py +++ b/AerialNavigation/drone_3d_trajectory_following/Quadrotor.py @@ -22,13 +22,13 @@ class Quadrotor(): self.z_data = [] self.show_animation = show_animation - plt.ion() - - fig = plt.figure() - self.ax = fig.add_subplot(111, projection='3d') - 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') + def update_pose(self, x, y, z, roll, pitch, yaw): self.x = x self.y = y