Hi everyone,
I want to control my drone with roll pitch yaw gaz command with airsdk.
What is the best way to do that?
I found this command for the services : arsdk_cmd_enc_Ardrone3_Piloting_PCMD
It seems to work but i don’t know how to bind it with the fsup’s state machine.
Is there a way to control it with guidance ? ( the only ref of Pcmd i found for guidance is for the input object)
Thank you so much for your time and your answer
Hello @Plathomson,
It might be this page in the documentation that you’re looking for: Messages list - 7.7
On the fsup side, the system expects to receive internal events generated from those PCMDs:
- PcmdHoriz →
pcmd_horizontal_move - PcmdYaw →
pcmd_yaw - PcmdVertical →
pcmd_vertical
There are also “long press” variants used in the horizontal, vertical, and yaw planes:
- PcmdHoriz →
pcmd_horizontal_move_long - PcmdYaw →
pcmd_yaw_long - PcmdVertical →
pcmd_vertical_long
So, if you’re generating your PCMDs inside your AirSDK mission, you can directly send the ARSDK_ID_ARDRONE3_PILOTING_PCMD yes, as you have done.
Could you maybe describe a bit more about your setup, or what exactly doesn’t seem to work on your side?
It will help us guide you better.
Thanks,
Best regards,
Hugo
Thanks for your answer,
since now, i use the move example and i replace the move-by command by mine.
However, i notice some parasite move when the drone is stop ( even if i send the command arsdk_cmd_enc_Ardrone3_Piloting_PCMD(&cmd,0,0,0,0,0,0) ).
Besides, i wanted to reuse the fsup’s state machine to control the drone.