How to get the current height of the drone?
Posted: Fri Mar 15, 2019 3:10 am
Looks like the height is just read from the hover height value that we set.
https://github.com/bitcraze/crazyflie-l ... er.py#L450
def get_height(self):
return self._hover_setpoint[self.ABS_Z_INDEX]
Is there a way we can read the height from the sensor data? Also do we need flow deck in order to get the current height? Or flow deck ust improves the height accuracy?
Reason I ask this is I failed to let it hover in a certain height (it always flies to the roof), so I want to debug with the code.
Thanks!
https://github.com/bitcraze/crazyflie-l ... er.py#L450
def get_height(self):
return self._hover_setpoint[self.ABS_Z_INDEX]
Is there a way we can read the height from the sensor data? Also do we need flow deck in order to get the current height? Or flow deck ust improves the height accuracy?
Reason I ask this is I failed to let it hover in a certain height (it always flies to the roof), so I want to debug with the code.
Thanks!