Flight control
388 2 2020-8-20
Uploading and Loding Picture ...(0/1)
o(^-^)o
djiuser_Dgxs5DgahQMF
lvl.1

India
Offline

In my custom android app using the MSDK, I want to controll the drone movements(pitch(up, down), roll(left,right) and forward and backrward).  It was also thinking of using this controll via seekbar inplace of using virtual joysticks. How can I achieve this?
2020-8-20
Use props
Spacemarine
lvl.4
  • >>>
Hong Kong
Offline

Hi, it is possible to using seekbar to control the drone flight. Frankly speaking, when you using joystick, you are actually connects the joystick behaviour to sendVirtualStickFlightControlData function. You just need to write a algorithm to link your seekbar with this function. Think about it, when the seekbar is used, how you are going to call the sendVirtualStickFlightControlData function.
Link:https://developer.dji.com/api-re ... tcontroldata_inline
2020-8-21
Use props
djiuser_Dgxs5DgahQMF
lvl.1

India
Offline

Spacemarine Posted at 8-21 01:50
Hi, it is possible to using seekbar to control the drone flight. Frankly speaking, when you using joystick, you are actually connects the joystick behaviour to sendVirtualStickFlightControlData function. You just need to write a algorithm to link your seekbar with this function. Think about it, when the seekbar is used, how you are going to call the sendVirtualStickFlightControlData function.
Link:https://developer.dji.com/api-reference/android-api/Components/FlightController/DJIFlightController.html?search=sendvir&i=0&#djiflightcontroller_virtualstickcontrolmodecategory_sendvirtualstickflightcontroldata_inline

Thankyou for your response. This will definitely help.
2020-8-21
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules