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 Imports #43

Open Delilovic opened 3 years ago

Delilovic commented 3 years ago

I think it is not possible to overwrite a mapped ID. You are using the ID 10000 every time for mapping a new event which is ignored by simconnect.

Serial.print("@10000/=EVENT_1;$"); --> OK Serial.print("@10000/=EVENT_2;$"); --> NOT OK (again EVENT_1 executed) Serial.print("@10000/=EVENT_3;$"); --> NOT OK (again EVENT_1 executed) ........

This means we can only define one custom event. The only solution I can think of would be to allow using a custom ID instead of the default 10000

Example:

Serial.print("@100/=EVENT_1;$");
Serial.print("@101/=EVENT_2;$");
Serial.print("@102/=EVENT_3;$");

Seahawk240 commented 3 years ago

Hey thanks for the remark and excuse me for my very late response... I've fixed this issue and hopefully will bring it online in a few days. I'm in the process of reworking the receive method to incoporate a serial monitor but I hope to finish it soon.