Jump to content

No1sonuk

Members
  • Posts

    1594
  • Joined

  • Last visited

Everything posted by No1sonuk

  1. Well I have a Hornet UFC font displaying almost full height using the Adafruit GFX library on a 128x32 OLED, but it won't display more than 4 characters, and it won't shift to the right far enough to add the ":" without clipping. I can't try U8G2 as there is apparently no way to convert a font for it if you don't have a 32-bit OS PC...
  2. I've been trying to get a converted TTF font to run through the Adafruit GFX / 1306 libraries, but I've come to the conclusion the Nano isn't the Arduino for the job. I'll try a Mega...
  3. Annoyingly, the font converter bdfconv won't run on my 64-bit Win 11 machine.
  4. Maybe edit the font to be bigger? Where did the font come from?
  5. IIRC, you tell it which font to use, and that includes the size.
  6. Could you post your code, please, as well as what's not working - Preferably in a whole new post to keep it neat. Thanks.
  7. This guy laser engraves self-painted painted panels: https://thewarthogproject.com/the-panel-design This one uses mechanical router engraving, but with pre-made coated plastic: You could use the painting scheme of the first link with the engraving of the second. And most people use acrylic. IIRC, "Opal" acrylic works well to give good light transmission, but also reasonable "whiteness" when no light is on.
  8. That would be the case if they're rolling digits, as the cockpit models use argument-based animation to move the wheels.
  9. You might need to temporarily replace the font file in the Adafruit GFX library files, compile the code, then change it back. IIRC, it's the glcdfont.c file in the "Documents\Arduino\libraries\Adafruit_GFX_Library" folder.
  10. This might be what you need:
  11. You might find this of use. -- Vertical Speed Indicator AVU-53/A Variometer = CreateGauge() Variometer.arg_number = 225 Variometer.input = {-6000.0, -4000.0, -3000.0, -2000.0, -1000.0, -500.0, 0.0, 500.0, 1000.0, 2000.0, 3000.0, 4000.0, 6000.0} Variometer.output = { -1.0, -0.83, -0.73, -0.605, -0.40, -0.22, 0.0, 0.22, 0.40, 0.605, 0.73, 0.83, 1.0} Variometer.controller = controllers.Variometer This is how the game maps the VSI values to the cockpit model needle positions. Output -1 is needle fully anticlockwise, +1 is fully clockwise. Just 13 mapping points. This information, along with other non-linear gauge mapping info, comes from the "mainpanel_init.lua" file in the module's "cockpit/scripts" folder.
  12. Interesting. The hardware configuration part is good too.
  13. Interesting. I'll need to check that out. My comment is from a hardware electronics engineer's point of view.
  14. You're generally better off putting the LED resistors on the 7+1 segments side, rather than the 4 common lines. This is because the current will vary depending on how many segments you're running, meaning the one resistor may be too big for an "8", but too small for a "1". e.g.
  15. Might be worth trying helical gears on the servo unit if you can. I also add a ring to go into the faces behind the glass to retain it. null
  16. I just confirmed this sketch causes the CMSP DISP switch to move on both A-10C modules in cold/dark condition - So just the switch moves. Test Arduino is clone Uno with ON-OFF-ON switch. Sketch used is exactly as above - no edits. Latest DCS update. EDIT: Also works on Mega. There must be something wrong with your setup.
  17. Even if there is another switch that needs to be on for the CMSP switches to alter the function and displays, the "physical" switches in the cockpit model should still move with your DCS-BIOS connected switches.
  18. Just tried it. Viper, Falcon and Lawn Dart...
  19. You'll have to use the ON-OFF-(ON) type for it to work. DCS interprets the "OFF" position as the centre. Have you tried using the CMSP switches to run another 3-position function you know works? e.g. Landing/Taxi lights or Master Arm switches?
  20. You can add capacitors to what you have.
  21. They don't have the capacitors.
  22. Do you have capacitors on the signal lines? It might help. See attached (the dotted resistors are not required).
  23. OK guys, the DCS-BIOS coders have solved the stability problem. The latest nightly build of DCS-BIOS (DCS-BIOS Nightly 2024-06-02) has the magnetic heading available in the CommonData section. https://github.com/DCS-Skunkworks/dcs-bios/releases It's an integer in degrees (0-359) which means no leading zeros. Because it's in the CommonData, it's available with all modules.
  24. To clarify: Put this at the top of your code: typedef DcsBios::RotaryEncoderT<POLL_EVERY_TIME, DcsBios::TWO_STEPS_PER_DETENT> TwoStepRotaryEncoder; // A custom rotary encoder with two quadrature steps per physical detent. Then use "TwoStepRotaryEncoder" in place of the "DcsBios::RotaryEncoder" part of the code lines. e,g, TwoStepRotaryEncoder ilsKhz("ILS_KHZ", "DEC", "INC", PIN_A, PIN_B);
  25. Have you tried updating DCS-BIOS? DCS updates sometimes break the DCS-BIOS controls until it's updated.
×
×
  • Create New...