I saw this page
I see the author changing all RGB LED states at will. I would like also to do that.
The reason for this is that I’m connected to I2C (as slave) instead of GPS here and getting the LED commands my self, so I want to test all the states.
Could anyone help how this could done (force pixhawk all RGB led “14” states)?
You can set via scripting,
This file has been truncated.
-- This script is a test of led override
local count = 0
function update() -- this is the loop which periodically runs
count = count + 1
if count == 1 then
-- solid red
-- red,green,blue,rate hz, duration ms
elseif count == 2 then
-- solid green
elseif count == 3 then
-- solid blue
elseif count == 4 then
-- 1hz red + green
iampete, thanks for your response, but this script is only testing raw RGB LEDs
I want to test Pixhawk “14” states?
like in “
How did Randy Mackay managed to go through all states? I want this option also.
Since nobody could answer my question, I had to modify the existing code in RGBLed.cpp in libraries and force the state I wanted. only for debugging purpose