scott-vincent / power-lights-panel

A power/lights panel for Microsoft Flight Simulator 2020
11 stars 2 forks source link

Battery and avionics switches for Cessna 152/172 #1

Open tarasius opened 1 month ago

tarasius commented 1 month ago

I configured GPIO for battery and avionics switches, I can see in WebGPIO the corresponding GPIO pins reacting when I switch. But no reaction in MSFS. I can see in the code some conditions for APU Bleed, but do they apply to Cessna 152/172? Do I miss something? Is there any way to run instrument data link in some kind of verbose mode to log all incoming commands? I could verify then that MSFS receives a command but ignores it, or maybe a command was not even sent.

scott-vincent commented 1 month ago

If you run the power-lights-panel and then run Instrument-Data-Link you should see some output (from data-link) that looks similar to this:

Instrument Data Link v2.0.0 Copyright (c) 2023 Scott Vincent Server listening on port 52020 Power/Lights panel connected from 192.168.1.53 Searching for local MS FS2020...

This proves that power-lights-panel is running connectly and has the correct IP address configured as it has successfully connected to data-link.

APU Bleed is not relevant to the Cessna 152/172 as that aircraft does not have an APU.

tarasius commented 1 month ago

Thanks for the reply. Yes, I have the connection and other buttons work fine. But I can't figure out what is wrong with those switches. I see GPIO reaction but no reaction in game. I checked the config file multiple times, pins are correct. I thought maybe there is some condition when they are enabled.