Search found 14 matches

by alkargr
Mon Aug 02, 2021 6:12 pm
Forum: Air Manager Bug Reports
Topic: Receiving multiple messages from message port
Replies: 12
Views: 5465

Re: Receiving multiple messages from message port

@JackZ I don’t think that’ll work; from the sounds of it, if you send: Message ID=1, payload 0x5F intended for instrument A Message ID=2, payload 0xB2 intended for instrument B Both instruments will receive *two copies* of both payloads. If you tell instrument A to ignore payload 2, you still have ...
by alkargr
Thu Jul 29, 2021 5:46 am
Forum: Air Manager Bug Reports
Topic: Receiving multiple messages from message port
Replies: 12
Views: 5465

Re: Receiving multiple messages from message port

That's a good idea! I'll try it with si commands.
Thank you!
by alkargr
Wed Jul 28, 2021 9:02 pm
Forum: Air Manager Bug Reports
Topic: Receiving multiple messages from message port
Replies: 12
Views: 5465

Receiving multiple messages from message port

When you have more than one instruments that receive messages from the same hardware_id, the instrument gets the same message times the number of instruments. E.g. If you have instr A with id = hw_message_port_add("ARDUINO_MEGA2560_A", new_message) and instrB with id = hw_message_port_add(...
by alkargr
Fri Jul 23, 2021 10:03 am
Forum: Air Manager Bug Reports
Topic: AM 4.0.2 si_variable_subscribe bug
Replies: 3
Views: 2714

Re: AM 4.0.2 si_variable_subscribe bug

Hello, As Sling said there are some bugs regarding si variables. I found the following problems: 1. When you use si_variable_create and you initialize the variable with a value, that value isn't returned from the xplane plugin. So when you subscribe to this variable you always get 0. var_id = si_var...
by alkargr
Mon Jun 21, 2021 7:01 pm
Forum: Air Manager feedback & feature requests
Topic: Character Display MAX7219 features
Replies: 5
Views: 2913

Re: Character Display MAX7219 features

If you write 88888888 to test a display, then you should find the previous values to write them back, when the test is over. And writing on 3 daisy chained MAX7219 simoultaneously (6 displays) doesn't always work properly on AM.
by alkargr
Mon Jun 21, 2021 6:33 pm
Forum: Air Manager feedback & feature requests
Topic: Native Support for ON/OFF/ON Switches
Replies: 44
Views: 20224

Re: Native Support for ON/OFF/ON Switches

I had the same problem with those 3 pin switches so instead of using: function switch_callback(position) print("Switch pos " .. position) end hw_switch_add("ARDUINO_MEGA2560_D_D4", "ARDUINO_MEGA2560_D_D6", switch_callback) --ON/OFF/ON switch I used: function dn_switch_c...
by alkargr
Mon Jun 21, 2021 6:05 pm
Forum: Air Manager feedback & feature requests
Topic: Character Display MAX7219 features
Replies: 5
Views: 2913

Character Display MAX7219 features

It would be useful if you could include a function for Display Test and Shutdown operations for the MAX7219 as described in the datasheet. It is similar to the brightness function but with an other address part. Please have a look at it!! :)
by alkargr
Wed Apr 14, 2021 3:13 pm
Forum: Air Manager Help
Topic: Updating STRING dataref in X-plane
Replies: 9
Views: 3296

Updating STRING dataref in X-plane

When updating a string dataref with fewer characters, the remaining characters in the old value of the dataref are not deleted. ex. If the dataref value is "abcdef", when I update with the value "XYZ" the result is "XYZdef". value="abcdefg" xpl_dataref_write(&...
by alkargr
Fri Feb 26, 2021 2:06 pm
Forum: Air Manager Help
Topic: Writing fast on Int Array
Replies: 11
Views: 4170

Re: Writing fast on Int Array

Thank you so much! Keep up the good work guys!! :D
by alkargr
Wed Feb 17, 2021 1:11 pm
Forum: Air Manager Help
Topic: Writing fast on Int Array
Replies: 11
Views: 4170

Re: Writing fast on Int Array

Thank you for the replies, sorry for the code block! There are other functions that might be called and should update the same dataref at different indexes. Even if I update multiple values only once per function, some values are updated, but others not. You can try this code: function updateArray()...