Hello can anyone take a look of this message. here are something i dont understand.
1, channel not set( what channel)
2, 4196355 MM0 MC0 IE2048 IEC1 TN:rcou
3, WDG: T-3 SL0 FL129 FT3 FA0 FTP181 FLR80C2CC1 FICSR
Thank you. Yuri. your answer remind me. I think I have 2 lua scripts that I can only have one running(the error was gone once I took 1 of the 2 lua script away). I am not sure if I get it right. do you know how to assign a switch to get choosing more than one script to run.
It’s not really clear what you’re trying to do at this point, but here’s an example of how to use the SCR_USER* parameters in a script:
USER_VAR = 'SCR_USER1'
FREQUENCY = 100
STANDBY = 0
DO_FOO = 1
DO_BAR = 2
gcs:send_text(6, 'Foo activated')
gcs:send_text(6, 'Bar activated')
local user_val = param:get(USER_VAR)
if user_val == DO_FOO then
if user_val == DO_BAR then
return update, FREQUENCY
The led lua can be switch on by the vtx switch on low power. and it change the colors as the roll changes. and stop changing color when vtx switch is at mid power or high power. and the led will not be off again whatever the vtx switch changes.I did not assign this function. can you tell what make it like this?
I received the message of failsafe couple of time of the reason 3. but the rssi is being normal. the plane change the course little bit then back to normal. I don’t know what is happening.
I think you have an electrical problem, possibly related to your VTX power supply. Your autopilot isn’t monitoring board voltage that I can see in your log, so I’m just going by your description as well as a couple of very strong current spikes that drop your battery below 13.5V at times. The failsafe you’re experiencing looks like a radio failsafe, which I think may be related.
If your autopilot is rebooting when you power your VTX on and off, it’s almost certainly a power supply issue. Either your battery isn’t up to the task, the bus from which your drawing VTX power is not suitable, or your have mis-wired in some other way.
You’ll want to solve these issues before trying to power even more peripheral hardware like LEDs.
Perhaps one of the team more experienced with Plane firmware can take a look at the logs and see if I’m missing anything.
As for your Lua script problems, you are trying to use a script that has LEDs on two channels, one for the left side and one for the right. According to the messages in your first post, you only have LEDs on one output pin, so that script will not work for you.
How many LEDs are connected?
What, exactly, do you want them to do?
The voltage and current readings should be smooth lines, but the log is showing crazy oscillations that I’ve never noticed before. At points the voltage is oscillating 0.5v, and 6 amps. That’s a lot.
You need to figure out if this is just a sensor issue, or if it’s real. If these power oscillations are real then there’s going to be no shortage of gremlins in your plane. (reboots, failsafes, etc…) For starters, disconnect everything that’s not critical for flight: VTX, Camera, LEDs, and any other gear you may have installed. Then see if the oscillations are still there. If that clears it up, add things back one by one until you isolate the problem. If it doesn’t clear it up, then get into your wiring and components. Do you have a bad or poor connection somewhere? Do you have a bad filter capacitor or Do you need to install a filter capacitor? Do you have a component that is failing?
The vtx power is from the matek765wing. and the battery is 21700. it drop the voltage when the current gets big. but it basically works fine for my other planes
I did some test this afternoon. I unplug the vtx. the reboot with vtx switch issue was still there. I disable the LED script. the problem was gone. but the failsafe still happens. I am going to unable the lua script (scr_enable=0)again and continue to test tomorrow.
I did not know it was two channel. it changes the color from one end to the other end. it works fine on the another plane of mine. and there was only one connection on the matekF765wing board.
for this plane it has 11 LEDs are connected.
I would have them turned on if I can assign a switch. I do night fly sometimes and I need it on so I can the plane in the dark.
This is what I did this afternoon. but looks I need to try more options to find out what is wrong. I have assembled a new battery(21700 with 2p4S). since you told me the power drop problem last time of launching problem. and I tried on other normal plane first. it was fine.
I have added capacitor on the both esc with each one of 1000uf. The flgiht board was sent back to the factory for a test. and result was fine. the rest of components will be a long list. I need to think about it.