AM 4 Beta 13 - encoder for course and heading - steps of 10

Discuss suspected bugs with other users and Sim Innovations Staff

Moderators: russ, Ralph

Post Reply
Message
Author
flyatr
Posts: 300
Joined: Tue Dec 01, 2015 8:53 am

AM 4 Beta 13 - encoder for course and heading - steps of 10

#1 Post by flyatr »

Hello there,

I have added encoders for course, heading and altimeter with the code below (FS2020).
Strangely, course and heading are incremented by 10 even when I click the software button in the Air Manager window.

Altimeter setting works fine.

Cheers,
Tobias.

Code: Select all

-- COURSE
------------------------------------------------
function crsEncoder(direction)
		if direction == 1 then
			fs2020_event("VOR1_OBI_INC")
		elseif direction == -1 then
			fs2020_event("VOR1_OBI_DEC")
		end
end
hw_crs_encoder = hw_dial_add("ARDUINO_MEGA2560_A_D14", "ARDUINO_MEGA2560_A_D7",3, crsEncoder)

-- HEADING
------------------------------------------------
function hdgEncoder(direction)
		if direction == 1 then
			fs2020_event("HEADING_BUG_INC")
		elseif direction == -1 then
			fs2020_event("HEADING_BUG_DEC")
		end
end
hw_hdg_encoder = hw_dial_add("ARDUINO_MEGA2560_A_D3", "ARDUINO_MEGA2560_A_D5","TYPE_1_DETENT_PER_PULSE", 3, hdgEncoder)

User avatar
Ralph
Posts: 7915
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: AM 4 Beta 13 - encoder for course and heading - steps of 10

#2 Post by Ralph »

You can add a print to see how many times the event is being fired. But I expect this to be a FS2020 problem. Pitch trim for example, it would take you probably two years to trim from full down to full up.

flyatr
Posts: 300
Joined: Tue Dec 01, 2015 8:53 am

Re: AM 4 Beta 13 - encoder for course and heading - steps of 10

#3 Post by flyatr »

Sorry for the late reply. You are right. The same thing happens when you assign a key inside FS2020 to this event.

User avatar
Ralph
Posts: 7915
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: AM 4 Beta 13 - encoder for course and heading - steps of 10

#4 Post by Ralph »

FS2020 has a lot of bugs. You can report them, but from my experience there isn't much use to it. I've reported various issues, but they just mark it solved and close the support ticket.

Steku
Posts: 42
Joined: Sun Sep 06, 2020 11:59 am

Re: AM 4 Beta 13 - encoder for course and heading - steps of 10

#5 Post by Steku »

Aren't you by any chance using Honeycomb yoke or any other control device with "sticky" switches (vs. 'momentary' buttons). There is a well known bug, causing 10 degree heading bug movements (also accelerated elevator trim, and 1000 ft altitude bug) when any control swicth is sending continuous signal.
The workaround - unbind the "sticky" switches in the sim and use FSUIPC to assign them.

Post Reply