Virtual RC (Remote Controller), is an API designed for developers to control the drone through serial port by simulated channel values.
Developers can use it directly without obtaining control ability. A list of channel data should be sent to the drone from serial port within every second, or the drone will exit from the virtual RC logic.
|API LEVEL||CMD SET||CMD ID||DESCRIPTION|
|0||0x05||0x00||obtain of release virtual RC control|
|0||0x05||0x01||virtual RC channel data|
/* Struct of RC Enable/Disable */
The drone will exit the virtual RC logic if there has been a whole second with no
virtual_rc_data sent. After exiting the virtual RC logic, the drone will switch back to the real RC if
1; otherwise, the drone will run into the RC lost logic directly, which is same as the one when you lost your real RC connection.
The specific meaning of each channel is defined by developers himself and can be configured in DJI assistant.
The default one for DJI controller is defined as follows:
|Function Channel||Physical Channel||Channel Type||Range|
|MODE||6||Third gear switch||1552(P),1024(A),496(F)|
|GEAR||4||Second gear switch||1684(Up),1324(Down)|
To arm/disarm the drone
data = 1024-660; (Roll)
To move upwards
data = 1024; (Roll)