Search found 33 matches

by SteveBurney
Mon Apr 04, 2022 12:35 pm
Forum: Arduino
Topic: AM with Mindstar GPS
Replies: 0
Views: 551

AM with Mindstar GPS

I use the Mindstar GPS with FSX and I have a question about connecting physical buttons and encoders through AM. I can control it with FSX event IDs (the numbers, not the text), but I don't see how to send those through AM. I've tried using the FSX text event ID's (eg "GPS_MSG_BUTTON"), an...
by SteveBurney
Mon Apr 04, 2022 1:07 am
Forum: Arduino
Topic: Another problem with the button box
Replies: 4
Views: 893

Re: Another problem with the button box

Hi Ralph, I think I got it working, so no need for you to spend the time on it. I appreciate your help, though, and I even attempted to reduce the spaghetti by creating a function to turn out all of the led's and another function to turn on the applicable led. It's probably still a long way from ide...
by SteveBurney
Mon Mar 28, 2022 12:41 pm
Forum: Arduino
Topic: Another problem with the button box
Replies: 4
Views: 893

Re: Another problem with the button box

I apologize for the spaghetti, it's my first shot at this. Here's a summary of what I'm thinking, if it will help give some insight to the script: When a button is pressed it sets a variable, BP. The LED's illuminate based on the value of the variable and the function of the rotary encoders is also ...
by SteveBurney
Mon Mar 28, 2022 12:20 am
Forum: Arduino
Topic: Another problem with the button box
Replies: 4
Views: 893

Another problem with the button box

Hi Again, I've built a button box with 2 rotary encoders and several buttons to 'tell' the encoders what to do and LEDs so that I know what it's doing. Here is the code: --Button Box Logic --When a button is pressed, the corresponding LED will illuminate --and the function will be active on the rota...
by SteveBurney
Sun Mar 27, 2022 3:05 pm
Forum: Arduino
Topic: G5/rotary encoder/arduino
Replies: 28
Views: 3775

Re: G5/rotary encoder/arduino

Thank you, Tony and Ralph. That did the trick.

Steve
by SteveBurney
Sun Mar 27, 2022 2:17 am
Forum: Arduino
Topic: G5/rotary encoder/arduino
Replies: 28
Views: 3775

Re: G5/rotary encoder/arduino

Thank you, Keith. I'm not quite at the end of my rope, but I do agree that some basic documentation would be appreciated. At least I've been able to take the hints that I've been given and piece it together. I'm grateful for the assistance and realize that it must get tiring to be continually asked ...
by SteveBurney
Sat Mar 26, 2022 6:45 pm
Forum: Arduino
Topic: G5/rotary encoder/arduino
Replies: 28
Views: 3775

Re: G5/rotary encoder/arduino

OK, so maybe I am the slow kid. I changed the device_id to 1 and it works perfectly. I thought device_id referred to the hardware, not the G5 device (1=PFD, 2=HSI).

Thank you for the help.

Steve
by SteveBurney
Sat Mar 26, 2022 6:30 pm
Forum: Arduino
Topic: G5/rotary encoder/arduino
Replies: 28
Views: 3775

Re: G5/rotary encoder/arduino

I'm starting to feel like the slow kid in class. I thought I WAS using your code...the only thing I changed was the device_id-is it supposed to be 1?
by SteveBurney
Sat Mar 26, 2022 4:28 pm
Forum: Arduino
Topic: G5/rotary encoder/arduino
Replies: 28
Views: 3775

Re: G5/rotary encoder/arduino

I'm wondering how you came up with that command, it's completely wrong :)

Code: Select all

si_command("si/g5/1/knob_cw")
is what you posted on 3/17.
by SteveBurney
Sat Mar 26, 2022 4:22 pm
Forum: Arduino
Topic: G5/rotary encoder/arduino
Replies: 28
Views: 3775

Re: G5/rotary encoder/arduino

I just noticed that in the code I have rot1 as the device id. I've also tried it with TopRotary in that position (which now that I think about it is probably the correct id).