Difference between revisions of "JSON API"
Line 43: | Line 43: | ||
=== Tic-tac mode === | === Tic-tac mode === | ||
Enable/disable Tic-tac mode<br> | Enable/disable Tic-tac mode<br> | ||
<pre>!{"cmd":"wiral","param":"mode","value":"tic-tac","value2":"1","value3":"-1"}</pre> | |||
value2 = 1 - enable, 0 - disable <br> | value2 = 1 - enable, 0 - disable <br> | ||
value3 = -1 - use current speed, 0-255 - set speed <br> | value3 = -1 - use current speed, 0-255 - set speed <br> | ||
<br> | <br> | ||
Revision as of 20:04, 22 April 2022
Automovements control
Store automovement preset value
{"cmd":"updateconfig","param":"automovement","value":"store","value2":"1"}
Go to automovement preset
{"cmd":"updateconfig","param":"automovement","value":"move","value2":"1"}
Enable automovement routine
{"cmd":"updateconfig","param":"automovement","value":"setstate","value2":"1"}
Disable automovement routine
{"cmd":"updateconfig","param":"automovement","value":"setstate","value2":"1"}
Camera gimbal control
Move gimbal to normal position (center)
!{"cmd":"position","param":"normal"}
Move gimbal to selfie position (if available)
!{"cmd":"position","param":"selfit"}
Change gimbal mode (0 - 2)
!{"cmd":"gimbal","param":"mode","value":"1"}
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"}
value2 = 1 - enable, 0 - disable
value3 = -1 - use current speed, 0-255 - set speed
Set position
value2 = position from 0 to 65535
value3 = -1 - use current speed, 0 - 255 - set speed
!{"cmd":"wiral","param":"position","value":"set","value2":"0","value3":"-1"}