Linear Actuator behaving strangly #483
Octal450
started this conversation in
Support requests
Replies: 2 comments 2 replies
-
@abassign, any idea about what's going wrong ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is a genuine bug so I have opened the issue #485. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am modelling an analogue HSI instrument by use of a linear actuator, followed by an actuator + lag filter.
I notice some really strange behavior in the linear actuator when there are quick movements about the changeover point specified by the module tag (in my case 359 -> 0 or 0 -> 359
I have observed this affect with the heading bug implementation as well as with the heading card showing current heading, showing the issue is not related to integers vs floating point values.
Properties to take note of:
heading-input
is magnetic heading inheading-linear-cmd
is the linear-actuatorIn this image it is working correctly, instead of jumping to 359, it went negative.

I will now kick the rudder left and right profusely to move the aircraft through the 359 -> 0 or 0 -> 359 transition several times and it works most of the time correctly, then sometimes, it does this:
Huh? it just jumped up to 720 from roughly 0. So now since I have an actuator following the linear actuator, the HSI card rotated (in this case) 2 full revolutions due to the jump from near 0 all the way to 720 (meaning the bug occurred twice, usually its just once) which is the exact behavior I was trying to avoid. This is very strange.
I will also point out it doesn't matter if the linear is currently negative, positive, or with a large number from built up revolutions, or still small near 0 or near +/- 360, the bug still happens.
My code is as follows:
Am I doing something wrong or did I uncover a bug :D
Kind Regards,
Josh
Beta Was this translation helpful? Give feedback.
All reactions