Difference between revisions of "JSON API"
Jump to navigation
Jump to search
Line 21: | Line 21: | ||
== Camera gimbal control == | == Camera gimbal control == | ||
Move gimbal to | |||
!{"cmd":"position","param":"normal"} | === Move gimbal to center position === | ||
<pre>!{"cmd":"position","param":"normal"}</pre> | |||
<br> | <br> | ||
Move gimbal to selfie position | === Move gimbal to selfie position === | ||
!{"cmd":"position","param":" | <pre>!{"cmd":"position","param":"selfie"}</pre> | ||
<br> | <br> | ||
=== Set gimbal mode === | |||
!{"cmd":"gimbal","param":"mode","value":"1"} | <pre>!{"cmd":"gimbal","param":"mode","value":"1"}</pre> | ||
<b>Params</b><br> | |||
<b>value1</b> mode number (0 - 2) <br> | |||
<br> | <br> | ||
Revision as of 20:16, 22 April 2022
Automovements control
Enable/disable automovements
{"cmd":"updateconfig","param":"automovement","value":"setstate","value2":"1"}
Params
value2 1 - enable, 0 - disable
Go to preset
{"cmd":"updateconfig","param":"automovement","value":"move","value2":"1"}
Params
value2 preset number (0 - 255)
Store automovement preset
{"cmd":"updateconfig","param":"automovement","value":"store","value2":"1"}
Params
value2 preset number (0 - 255)
Camera gimbal control
Move gimbal to center position
!{"cmd":"position","param":"normal"}
Move gimbal to selfie position
!{"cmd":"position","param":"selfie"}
Set gimbal mode
!{"cmd":"gimbal","param":"mode","value":"1"}
Params
value1 mode number (0 - 2)
Move gimbal. value - pan speed, value2 - tilt speed, value3 - roll speed. From -1.0 to 1.0, 0 - stop
{"cmd":"gimbal","param":"move","value":"-1.0","value2":"0.0","value3":"0.0"}
Set gimbal mode. value - mode. From 0 to 2
!{"cmd":"gimbal","param":"mode","value":"0"}
Camera control
Wiral Lite control
Tic-tac mode
Enable/disable Tic-tac mode
!{"cmd":"wiral","param":"mode","value":"tic-tac","value2":"1","value3":"-1"}
Params
value2 1 - enable Tic-tac mode, 0 - disable Tic-tac mode
value3 speed (0-255), -1 - use current speed
Move to position
!{"cmd":"wiral","param":"position","value":"set","value2":"0","value3":"-1"}
Params
value2 position (0 - 65535)
value3 speed (0-255), -1 - use current speed