Hover using Python client
Posted: Thu Mar 15, 2018 7:25 am
Hello Everyone,
I am having difficulty to hover using Python client, I am basically using
VX=0
VY=0
YawRate=0
zdesired=0.2
cf.commander.send_hover_setpoint(VX,Vy,YawRate,zdesired)
1) I could not able to hover for the desired amount of time. Although I am sending the commander instructions for every <=0.5s.
a) for suppose when I want my cf to hover for 10s, it is hovering only for 2s or 3s and slowly landing down.
b) when I am sending the commander instructions for every 10ms then it slowly going above my desired height say 0.2m
c) and do I need to set the cf.param.set_value('flightmode.althold','1') or not?
2)And I have mounted few extensions on cf which I think causing a huge drift, after going through few of the developers' discussions, I understood that it cannot be eliminated completely, However, it(drift) can be reduced by PID tuning, how to start the tuning is it a trial and error?
Regards,
Hari
I am having difficulty to hover using Python client, I am basically using
VX=0
VY=0
YawRate=0
zdesired=0.2
cf.commander.send_hover_setpoint(VX,Vy,YawRate,zdesired)
1) I could not able to hover for the desired amount of time. Although I am sending the commander instructions for every <=0.5s.
a) for suppose when I want my cf to hover for 10s, it is hovering only for 2s or 3s and slowly landing down.
b) when I am sending the commander instructions for every 10ms then it slowly going above my desired height say 0.2m
c) and do I need to set the cf.param.set_value('flightmode.althold','1') or not?
2)And I have mounted few extensions on cf which I think causing a huge drift, after going through few of the developers' discussions, I understood that it cannot be eliminated completely, However, it(drift) can be reduced by PID tuning, how to start the tuning is it a trial and error?
Regards,
Hari