Seahawk240 / Microsoft-FS2020-To-Arduino

A Simple Program which enables communication between a Serial Device (like an Arduino) and the Flight Simulator 2020
48 stars 7 forks source link

Custom Inputs into MSFS #50

Open crngyfrg opened 1 year ago

crngyfrg commented 1 year ago

Hello, First, thank you so much for this software. It is absolutely amazing. I am working on a switch panel with 14 switches, 2 LCDS, and 4 dials run off of an Arduino Mega meant to somewhat emulate the C172. I want to include a standby battery switch like the 172 has, but there is not an option for that in the standard imports. I am trying to figure out how to implement this, but unfortunately, I can't figure out how to work that. Any help would be significantly appreciated. This is the last thing that I had planned to include, everything else has been sorted out in my project.

Seahawk240 commented 1 year ago

Hi, Sounds like an absolutely amazing project! I'm a bit short on time as usual but did you try it with those already? BATTERY1_SET BATTERY2_SET BATTERY3_SET BATTERY4_SET

crngyfrg commented 1 year ago

Thanks so much for the response. This variation has introduced a bizarre issue into my code: including the lines of code to activate this causes the whole code to fail. I have no clue why this might be, nor why it is specifically when I use BATTERY1_SET, but it messes up the sendCommandToFS2020 function, which has worked for the entire time that I have been doing this project. I have included the code snippet that calls this specific functionality below, if you have a minute or 2 I would greatly appreciate a look over. Thank you so much.

Screenshot 2023-07-08 135457