Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SerialLED scripting interface #25571

Merged
merged 6 commits into from
Nov 20, 2023

Conversation

andyp1per
Copy link
Collaborator

@andyp1per andyp1per commented Nov 17, 2023

This fixes two issues:

  • A race condition in serial_led_send() which could mean that sending out data could be delayed
  • Allow scripts to know the return status of serial_led_send() and set_serial_led_rgb_data() so that they can retry if necessary

The first commit should be back-ported to 4.4

@andyp1per andyp1per added the BUG label Nov 17, 2023
@yuri-rage
Copy link
Contributor

Tested successfully with both WS2812 NeoPixels (on CubeOrangePlus-bdshot) and ProfiLEDs (on CubeOrange-bdshot).

Discussion here:
https://discuss.ardupilot.org/t/profi-led-lua-script-not-working-since-4-2/108325/34

@tridge tridge merged commit 04fa8ed into ArduPilot:master Nov 20, 2023
87 checks passed
@rmackay9 rmackay9 added this to Pending in Copter-4.4 Dec 4, 2023
@rmackay9
Copy link
Contributor

rmackay9 commented Dec 4, 2023

I tried to cherry-pick this into Copter-4.4 but it didn't go in cleanly so I gave up quickly. @andyp1per if you're keen maybe a backport PR? Sorry, I don't try too hard to resolve merge conflicts ..

@rmackay9
Copy link
Contributor

rmackay9 commented Dec 4, 2023

With Andy's help this is now included in Copter-4.4.4-beta1

@rmackay9 rmackay9 moved this from Pending to 4.4.4-rc1 in Copter-4.4 Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Copter-4.4
4.4.4-rc1
Plane 4.4
Awaiting triage
Development

Successfully merging this pull request may close these issues.

None yet

5 participants