Native Skydroid C12 Camera/Gimbal Support in QGroundControl
Subject: Integration of the Skydroid TOP ASCII/UDP camera control protocol
Target platform: QGroundControl 5.1.5, Android ARM64
Hardware: Skydroid G20 / GR01 / C12 RGB + Thermal camera
Status: Direct UDP camera control successfully tested on real hardware.
1. Overview
I would like to request native support for the Skydroid C12 dual-sensor RGB/thermal gimbal camera in QGroundControl.
The C12 uses a proprietary ASCII-based protocol known as TOP (#TP), transported over UDP. Its video stream is available separately through RTSP.
The camera is already displaying RGB and thermal video successfully in QGroundControl. Direct UDP commands for gimbal centering and absolute horizontal positioning have also been verified on the actual hardware.
The goal is to operate the camera directly from QGroundControl, ideally including joystick control, without needing to switch to the Skydroid Gimbal FPV application.
2. Hardware and software configuration
| Component | Configuration |
|---|---|
| Ground controller | Skydroid G20 |
| Operating system | Android 13, ARM64 |
| Radio receiver | Skydroid GR01 |
| Camera | Skydroid C12, RGB + thermal |
| Autopilot | Pixhawk 2.4.8 |
| Autopilot firmware | ArduRover 4.7.1 |
| Ground control software | QGroundControl 5.1.5, Android 64-bit |
| Camera connection | Ethernet/LAN via GR01 |
| Camera IP | 192.168.144.108 |
| Camera control | UDP port 5000 |
| Video | RTSP port 554 |
The G20 communicates with the GR01 over the Skydroid radio link. The C12 is connected to the GR01 network.
Camera control does not require routing commands through the Pixhawk.
The proprietary Skydroid Gimbal FPV application can control the camera over this connection even when Android Wi-Fi is disabled.
3. Network endpoints
Camera control
-
Protocol: UDP
-
Destination IP:
192.168.144.108 -
Destination port:
5000 -
Tested local source port:
5000 -
Payload encoding: ASCII text
-
No authentication or handshake observed in the successful tests
Video stream
Tested RGB stream:
rtsp://192.168.144.108:554/stream=1
RGB and thermal video reception in QGroundControl has been confirmed.
Additional RTSP stream URLs and thermal switching commands should be validated separately.
4. TOP command structure
Commands are ASCII strings with a two-character hexadecimal checksum appended.
Example:
#TPUG2wPTZ056F
Breakdown:
| Field | Example | Meaning |
|---|---|---|
| Header | #TP |
TOP protocol header |
| Source | U |
External controller |
| Destination | G |
Gimbal |
| Data length | 2 |
Number of ASCII payload characters |
| Operation | w |
Write |
| Command | PTZ |
Gimbal movement |
| Payload | 05 |
Center/home |
| Checksum | 6F |
Modulo-256 ASCII sum |
Checksum calculation:
def checksum(command: str) -> str:
return f"{sum(command.encode('ascii')) & 0xFF:02X}"
The checksum is calculated over the entire command before appending the checksum itself.
Example:
Base: #TPUG2wPTZ05
Checksum: 6F
Packet: #TPUG2wPTZ056F
5. Command families
The reverse-engineered implementation identifies these command families:
| Command | Function | Status |
|---|---|---|
PTZ |
Basic gimbal commands, center, stop | Center verified locally |
GAY |
Absolute yaw/pan positioning | Verified locally |
GAP |
Absolute pitch/tilt positioning | Verified by toolkit developer |
GSY |
Continuous yaw speed | Documented in toolkit |
GSP |
Continuous pitch speed | Documented in toolkit |
GAA |
Enable attitude telemetry | Verified by toolkit developer |
GAC |
Attitude telemetry response | Verified by toolkit developer |
CAP |
Capture photo | Defined in toolkit; not locally tested |
REC |
Start/stop recording | Defined in toolkit; not locally tested |
VER |
Firmware/version query | Documented; no local response received |
Other camera functions, including optical/digital zoom, thermal palette switching and sensor selection, may be available through additional TOP commands, but require further validation.
6. PTZ fixed commands
Command format:
#TPUG2wPTZXXCC
XX is the action code, and CC is the checksum.
| Action | Value | Complete command |
|---|---|---|
| Stop | 00 |
#TPUG2wPTZ006A |
| Up | 01 |
#TPUG2wPTZ016B |
| Down | 02 |
#TPUG2wPTZ026C |
| Left | 03 |
#TPUG2wPTZ036D |
| Right | 04 |
#TPUG2wPTZ046E |
| Center | 05 |
#TPUG2wPTZ056F |
Hardware observations:
-
Centering works reliably on the tested C12.
-
A single PTZ right command produced no noticeable movement.
-
PTZ directional commands should not be assumed to provide continuous movement.
-
Absolute-angle control is preferable.
7. Absolute pan/yaw control (GAY)
Command format:
#TPUG6wGAYAAAASSCC
Where:
-
AAAA= signed 16-bit target angle, encoded as hexadecimal, in units of 0.01° -
SS= speed byte in hexadecimal -
CC= checksum
Signed values use two’s complement.
The toolkit applies an inversion to the requested pan angle before encoding:
angle_raw = round(-degrees * 100)
speed_byte = abs(speed)
Example commands:
| Requested angle | Speed | Complete command |
|---|---|---|
| +10° | 20 | #TPUG6wGAYFC181448 |
| −10° | 5 | #TPUG6wGAY03E80536 |
Confirmed local test results:
-
The first command caused a fast horizontal movement.
-
The second command caused movement in the opposite direction, only slightly slower.
-
Both commands were successfully received and executed by the camera.
Mounting orientation
The tested camera is mounted upright, not suspended.
On this installation, the physical horizontal movement was opposite to the direction assumed by the toolkit’s public API:
-
Requested +10°: physical movement to the left
-
Requested −10°: physical movement to the right
Therefore, a configurable pan-axis inversion is required.
The application should not hard-code the physical movement direction for all camera installations.
8. Absolute tilt/pitch control (GAP)
Command format:
#TPUG6wGAPAAAASSCC
The encoding is similar to GAY, but the toolkit does not invert the requested tilt angle.
angle_raw = round(degrees * 100)
speed_byte = abs(speed)
The toolkit developer reports:
-
Positive angle: up
-
Negative angle: down
-
Tested angles: +5°, −5°, +10°
-
Observed physical tilt limits: approximately ±45°
These limits are observations on the developer’s hardware, not manufacturer-certified limits.
The pitch-axis direction and mechanical limits have not yet been verified on our upright-mounted C12.
A configurable tilt inversion and adjustable angle limits would be desirable.
9. Continuous speed control
Pan speed (GSY)
Format:
#TPUG2wGSYSSCC
Tilt speed (GSP)
Format:
#TPUG2wGSPSSCC
Speed encoding:
-
Signed 8-bit value
-
Valid range according to toolkit: −99 to +99
-
Positive and negative values select opposite directions
-
Negative values use two’s complement
The toolkit reports that continuous motion requires command refreshes at approximately 20 Hz.
Without periodic refreshes, the camera automatically stops within tens of milliseconds.
This behaviour is relevant for joystick control.
Recommended integration:
-
Send speed commands periodically while a joystick axis is active.
-
Send stop commands when returning to neutral.
-
Stop on loss of input, focus or control session.
-
Include configurable dead zones and axis inversion.
-
Avoid relying on a single speed command for sustained movement.
10. Gimbal telemetry (GAA/GAC)
The toolkit supports requesting continuous attitude telemetry.
Request format:
#TPUG2wGAARRCC
Where RR represents the requested update frequency in hexadecimal.
The toolkit reports a valid range of 0–100 Hz.
A request for 0 Hz disables streaming.
The camera responds with GAC telemetry packets containing three signed 16-bit values:
| Field | Encoding |
|---|---|
| Yaw | Signed int16, degrees × 100 |
| Pitch | Signed int16, degrees × 100 |
| Roll | Signed int16, degrees × 100 |
The toolkit developer verified that a commanded +20° tilt produced telemetry progressing to +20.00°.
This functionality would enable QGroundControl to display actual gimbal orientation and support closed-loop control.
Local telemetry reception remains unverified. The UDP terminal used in our tests showed outgoing traffic but no received packets.
11. Camera capture and recording
The toolkit defines the following commands:
| Function | Complete command |
|---|---|
| Take photo | #TPUD2wCAP0166 |
| Start recording | #TPUD2wREC016C |
| Stop recording | #TPUD2wREC006B |
These are derived from the supplied protocol implementation and checksum algorithm.
Their behaviour has not yet been tested on our camera.
12. Requested QGroundControl functionality
Initial integration
-
Select Skydroid TOP/UDP as camera/gimbal control protocol.
-
Configure camera IP address and UDP port.
-
Configure local source port.
-
Pan and tilt control through the QGC interface.
-
Center/home button.
-
Adjustable speed.
-
Independent horizontal and vertical axis inversion.
-
Adjustable mechanical angle limits.
-
Preserve the existing RTSP video integration.
Extended integration
-
G20 joystick support.
-
Camera zoom.
-
RGB/thermal sensor selection.
-
Thermal palette switching.
-
Photo capture.
-
Video recording.
-
Gimbal orientation telemetry.
-
Camera status and firmware information.
13. Suggested implementation architecture
A possible implementation would use a Qt/C++ TOP protocol backend with QUdpSocket.
The backend would be responsible for:
-
Encoding TOP commands and checksums.
-
Sending UDP datagrams to the camera.
-
Receiving and parsing camera telemetry.
-
Applying axis inversion and angle limits.
-
Managing periodic speed-command transmission.
-
Providing a camera/gimbal control interface to QGroundControl.
The camera should be controllable independently of the vehicle autopilot.
If appropriate, the TOP backend could be adapted to QGroundControl’s existing camera and gimbal control architecture.
14. Reference implementation
Open-source reverse-engineered toolkit:
Relevant source files:
-
protocol.py– TOP packet generation, checksum, UDP transport and telemetry parsing -
gimbal.py– Higher-level gimbal control, absolute positioning, speed control and safety limits
Additional reverse-engineering reference cited by the toolkit:
These projects are useful implementation references but should not be treated as official Skydroid SDK documentation.
15. Verification summary
| Feature | Our C12 | Toolkit developer |
|---|---|---|
| UDP control on port 5000 | Confirmed | Confirmed |
| Gimbal centering | Confirmed | Confirmed |
| Absolute pan angle | Confirmed | Confirmed |
| Absolute tilt angle | Not tested | Confirmed |
| Pan speed control | Not tested | Documented |
| Tilt speed control | Not tested | Documented |
| Attitude telemetry | No response observed | Confirmed |
| Photo capture | Not tested | Implementation available |
| Recording | Not tested | Implementation available |
| Zoom/thermal commands | Not tested | Further investigation required |
16. Development objective
The objective is to enable native operation of the Skydroid C12 from QGroundControl on the G20 Android controller.
The working RTSP stream and successfully tested UDP positioning commands demonstrate that the required network connectivity and basic control functionality already exist.
A native TOP/UDP backend would eliminate the need to switch between QGroundControl and the manufacturer’s separate camera application.
I can provide additional real-hardware tests, including command verification, axis orientation, telemetry and joystick behaviour, to support implementation and testing.
Further more an integration of the 2 rtsp stream of this camera with RGB and Thermal with switching over would be helpfull including color-palettes.