HI Patrick,
Thanks for the quick response!
Unfortunately SERVO_OUTPUT_RAW
doesn’t seem to provide a changing value for the camera (8th servo here), but one of the other regular packets - NAMED_VALUE_FLOAT
- has a CamTilt
value which seems to do the trick! It’s a value between 0 and 1 which we can use to calculate the angle of the camera between +/- 45°
I’ll just dump some of our output:
NAMED_VALUE_FLOAT {time_boot_ms : 869128, name : CamTilt, value : 0.30000001192092896}
NAMED_VALUE_FLOAT {time_boot_ms : 869128, name : CamPan, value : 0.5}
NAMED_VALUE_FLOAT {time_boot_ms : 869128, name : TetherTrn, value : 0.0}
NAMED_VALUE_FLOAT {time_boot_ms : 869128, name : Lights1, value : 0.0}
NAMED_VALUE_FLOAT {time_boot_ms : 869128, name : Lights2, value : 0.5}
NAMED_VALUE_FLOAT {time_boot_ms : 869128, name : PilotGain, value : 0.5}
NAMED_VALUE_FLOAT {time_boot_ms : 869128, name : InputHold, value : 0.0}
NAMED_VALUE_FLOAT {time_boot_ms : 869128, name : StickMode, value : 0.0}
SERVO_OUTPUT_RAW {time_usec : 869208027, port : 0, servo1_raw : 1500, servo2_raw : 1500, servo3_raw : 1500, servo4_raw : 1500, servo5_raw : 1500, servo6_raw : 1500, servo7_raw : 1500, servo8_raw : 1500}
NAMED_VALUE_FLOAT {time_boot_ms : 869628, name : CamTilt, value : 0.45499998331069946}
NAMED_VALUE_FLOAT {time_boot_ms : 869628, name : CamPan, value : 0.5}
NAMED_VALUE_FLOAT {time_boot_ms : 869628, name : TetherTrn, value : 0.0}
NAMED_VALUE_FLOAT {time_boot_ms : 869628, name : Lights1, value : 0.0}
NAMED_VALUE_FLOAT {time_boot_ms : 869628, name : Lights2, value : 0.5}
NAMED_VALUE_FLOAT {time_boot_ms : 869628, name : PilotGain, value : 0.5}
NAMED_VALUE_FLOAT {time_boot_ms : 869628, name : InputHold, value : 0.0}
NAMED_VALUE_FLOAT {time_boot_ms : 869628, name : StickMode, value : 0.0}
SERVO_OUTPUT_RAW {time_usec : 869708026, port : 0, servo1_raw : 1500, servo2_raw : 1500, servo3_raw : 1500, servo4_raw : 1500, servo5_raw : 1500, servo6_raw : 1500, servo7_raw : 1500, servo8_raw : 1500}
You can see that while NAMED_VALUE_FLOAT
returns a changing value for CamTilt
(I was moving the camera at the time), servo8_raw
only ever returns 1500
- if you’d be able to clarify what’s going on here I’d appreciate it; I’d like to understand the way you’d intended for me to use SERVO_OUTPUT_RAW
- though if you don’t have the time that’s no stress!
Regardless, thanks for your help!