#Button/Switches don't work
1 messages · Page 1 of 1 (latest)
Do you really expect anyone to be able to diagnose what's wrong with that information?
Activate logging mode and see if the button presses and releases are registered in the log. Please report back.
They are not registered even when I try to connect a wire between ground and my pin
Does Mobiflight detect your board OK?
Is the correct pin specified in the device config?
Yes it's detecting, my light for AP is working. I use a Arduino Micro pro and set the pin to 6 but it's not working even when I try to change the pin
Is it possible that the problem is in the config for the button action?
You just mentioned connecting the pin to ground does not register in Mobiflight
The logging mode does not care if you have an input config defined for that button
If you press it should be detected
If you are sure you have the correct pin, then I can only suspect your hardware is at fault. Either the pins in the pro micro are malfunctioning or the connections are wrong.
If the button is detected in Mobiflight then could a wrong configuration cause the problem?
If the button press is detected in Mobiflight, then you can be reasonably sure that your issue is configuration of the correct event.
Should I work with Event ID or msfs actions?
yes there are basically three things that need to be set correctly:
- The pin config under MobiFlight Modules - you can verify that this works with Logging mode: it shows OnPress and OnRelease events for buttons. This shows "No config found" until you get the next one defined:
- The Input config, that selects that input device (button pin), and connects it to a sim event. Once the Input config is defined and has the device set, you get also a log message about that.
- Simulator event that does the action in the sim. This can be MSFS2020 event, XPlane Command or Dataref, or FSUIPC offset or EventID for Prepar3D/FSX
Then on MSFS 2020 it depends on the add-on aircraft what events work - some planes use the common events, and ideally these would work for all planes, but some plane makers needed to write their own replacement systems and functionality and had to bypass the built in features in the sim, so it could be the events are completely custom to that plane. Thus we have the presets for a lot of popular planes, but for the less common ones, one needs to generally look them up manually.
You haven't mention what simulator and airplane?
I use msfs2020 A320 Fly by wire
The button is detected in Mobiflight, seems to be a problem in the config
Which version of FBW, which function, which event?
I don't know the exact version but this is my config for the Auto pilot button
I meant stable, or dev version
It should be stable I think...
And you are of course testing the AP 1 button with a flight plan programmed in the MCDU and the airplane off the ground, right?
I don't understand what you mean with mcdu but I tied it off the ground
I also tried to press the AP with my mouse and it's working but not with my button