Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Change RGB LED color based on VTX channel (Feature request) #3228
It would be a very nice feature, to have the RGB "base" color for the LEDs on the copter configurable, so that it changes depending on the VTX channel from SmartAudio and the TrampTelemetry. Since TBS is making their Race Tracker more versatile (and others will probably follow), it would be so much easier to have a fancy colored LED race if those colors would match up more or less automatic.
For more information about this feature and what it all is about, watch this demonstration from trappy during the FPV Life stream: https://youtu.be/B9gdAIKpmAs?t=1h32m35s
This feature would be great and is already implemented on the LaForge VTX accessory port. But we
TBS has already released their color scheme along with the SmartAudio protocol.
I could see this feature being implemented as another LED mode like the blinker, warning, blink always or throttle etc. The VTX LED mode could be enabeld if the user has smart audio active.
I'll take a look at the code base and see if there are other tickets around this issue. If it is not already being worked on I could start on it.
Looking into this a little further this could be implemented pretty easily by adding another overlay type such as LED_OVERLAY_VTX.
With the LaForge VTX we display a little bit more information with the LED Strip.
Displaying settings on the LED looks something like this and only displayed for 3 seconds then reverts back to frequency color.
If LEDs 2 through 5 are off this indicates it is currently in Pit Mode.
I'm going to take a shot at adding the overlay this weekend since I have already implemented on the LaForge VTX.
OK, I have this working in my fork. I wound up having to replace an existing overlay because there was no more bits left for a new overlay. The overlay I replaced was BLINK_ON_LANDING (not sure this will be missed). If we want to implement this a different way I'm up for suggestions however this was the least intrusive way without having to check firmware version in the configurator.
I was able to get this working as described here. I'll get some more details on how it works later as well as a frequency color map for reference.
Betaflight Fork: branch vtx-led-strip
Betaflight Configurator: branch vtx-led-strip
@sheaivey: Good work! I can't really test it, since I don't have a SmartAudio VTX, but I think adding this makes good sense. I also think replacing 'BLINK_ON_LANDING' is a good choice, since this never was implemented properly, and is very disappointing as it is (think of it as 'BLINK_IF_THROTTLE_LOW').
Can you please open pull requests for betaflight and betaflight-configurator, so we can review and then merge these changes?