Jump to content

Recommended Posts

Posted (edited)

[PARTIALLY RESOLVED]

I am trying to learn the readout of the serial connect screen.  I have an issue where it keeps disconnecting.  For context, I am using a servo output to control the intensity of an LED based on a knob position.  It works for a bit then stops.  The freeze happens even if there is no LED in the mega board so not sure this is some sort of voltage issue.

 

The code:

DcsBios::ServoOutput priConsolesBrtKnb(F_16C_50_PRI_CONSOLES_BRT_KNB_A, led_backlight, 544, 2400);

Where 

led_backlight

Is pin 13 and that pin is a 220 resistor into an LED terminating into the ground.

The last few lines: 

AIR_REFUEL_LIGHT_KNB 3601
FORM_L> 2025/02/05 13:02:41.000438377  length=70 from=1274 to=1343
UUUU....F-....  L....9 1.0-3.7442.08853.3194.E.....E.. a  .E...E....r.

Not sure if anything I am saying makes sense or if any of what I am sharing is useful.  I guess ultimately, before concerning myself with if this is a best practice for the back lighting (yes I know the air refuel knob is not back lighting but it was the knob that the error occurred on) and before figuring out error specifics, what causes the system to just stop like that?

Edited by mikez69
Partially resolved
Posted

Ok, I immediately had an idea after I sent this.  I have my code to an auxiliary board for testing.  This board ONLY has the LED on it.  So I decided to comment all of the other execution (loop) code out and test it, and everything worked fine...  I guess NOT having the other components on the board while it is running causes issues and the air refuel was the last in the array.  So when the loop hit a bunch of switches that did not return anything it halted.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...