Autonomous CrazyFlie Hover
Posted: Tue Mar 01, 2016 3:27 am
I recently (feb 2016) purchased crazyflie. I have seen many posts on hovering but no clear solution or code that shows its solved. I am sure I am missing something as I have seen some hovering on youtube by folks.
What am i looking to do: I have a raspberry pi controlling the drone through crazyradio. I run version of the ramp.py script to have the drone take off but am not able to keep the crazyflie to hover. There are following things i have come across
a) self._cf.commander.send_setpoint()
b) cf.param.set_value("flightmode.althold", "True")
c) also the concept of PID
But not sure how to put them together to do the following
a) read the current thrust (height) of crazyflie along with the yaw, pitch and roll values
b) subtract or add to the thrust I want it to be so that crazyflie can hover
Assuming this is already solved, can someone point me to the solution?
Thanks.
What am i looking to do: I have a raspberry pi controlling the drone through crazyradio. I run version of the ramp.py script to have the drone take off but am not able to keep the crazyflie to hover. There are following things i have come across
a) self._cf.commander.send_setpoint()
b) cf.param.set_value("flightmode.althold", "True")
c) also the concept of PID
But not sure how to put them together to do the following
a) read the current thrust (height) of crazyflie along with the yaw, pitch and roll values
b) subtract or add to the thrust I want it to be so that crazyflie can hover
Assuming this is already solved, can someone point me to the solution?
Thanks.