geaxgx / tello-openpose

MIT License
299 stars 87 forks source link

Plot drone trajectory #15

Closed viet2411 closed 4 years ago

viet2411 commented 4 years ago

Hello! Can you explain how you calculated x,y,z pos in this code please? if abs(pos_x) + abs(pos_y) + abs(pos_z) > 0.07: if self.ref_pos_x == -1: # First time we have meaningful values, we store them as reference self.ref_pos_x = pos_x self.ref_pos_y = pos_y self.ref_pos_z = pos_z else: self.pos_x = pos_x - self.ref_pos_x self.pos_y = pos_y - self.ref_pos_y self.pos_z = pos_z - self.ref_pos_z

I don't really understand what you did in this part. Thank you and best regards.