Skip to content

AP_Scripting: Add bindings to allow updating servo telem#31504

Merged
tridge merged 1 commit intoArduPilot:masterfrom
IamPete1:scrServoTelem
Feb 9, 2026
Merged

AP_Scripting: Add bindings to allow updating servo telem#31504
tridge merged 1 commit intoArduPilot:masterfrom
IamPete1:scrServoTelem

Conversation

@IamPete1
Copy link
Member

This allows a script to provide servo telem data in the same way we already can for ESC telem.

userdata AP_Servo_Telem::TelemetryData field motor_temperature_cdeg int16_t'skip_check read valid_mask present_types AP_Servo_Telem::TelemetryData::Types::MOTOR_TEMP
userdata AP_Servo_Telem::TelemetryData field pcb_temperature_cdeg int16_t'skip_check read valid_mask present_types AP_Servo_Telem::TelemetryData::Types::PCB_TEMP
userdata AP_Servo_Telem::TelemetryData field status_flags uint8_t'skip_check read valid_mask present_types AP_Servo_Telem::TelemetryData::Types::STATUS
userdata AP_Servo_Telem::TelemetryData rename ServoTelemetryData
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this break existing scripts?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, because it was a readonly userdata the user never saw the type name. The only way to get it was from servo_telem:get_telem, this changes the name and adds the creation function.

@IamPete1
Copy link
Member Author

IamPete1 commented Feb 6, 2026

Tested on periph using #31577

@tridge tridge merged commit ce6d78c into ArduPilot:master Feb 9, 2026
118 of 120 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants