Hi,
Just found something else that i've not come across before. If you use the rotate animation features on a value that passes through zero you get incorrect behaviour.
Use the C172 altimeter and change the hundreds needle rotation line to
rotate(needle_100, t, "LOG", 0.1)
Now move the baro knob so the hundreds needle passes through 0 from both directions and you will see the issue. I tried "LINEAR" & "LOG" nut obviously didn't expect that to make any difference. However I also tried adding all of the available direction argumnets but nothing works. I would of expected "DIRECT" to be correct. While on this subject the wiki page does not state what default is used for direction if it is not stipulated. I'm guessing "DIRECT" but it would be good to update the page to say what the default is.
Tony
rotate animation bug?
rotate animation bug?
Air Manager panels at https://www.experimentalsimavionics.com
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Re: rotate animation bug?
Hi,
Will have a look at this next week.
Corjan
Will have a look at this next week.
Corjan
Re: rotate animation bug?
Hi,
Bit later, but...
Two things:
1) By default the rotate will use an absolute angle. The code goes from 0 all the way to 3600 or so, in that case it will make 10 complete rotations. Setting the animation direction to 'FASTEST' will resolve this. In this case the code could be:
2) There is a bug in AM that makes it misbehave. I have fixed this and will be in the first AM 4.1 BETA.
Corjan
Bit later, but...
Two things:
1) By default the rotate will use an absolute angle. The code goes from 0 all the way to 3600 or so, in that case it will make 10 complete rotations. Setting the animation direction to 'FASTEST' will resolve this. In this case the code could be:
Code: Select all
rotate(needle_100, t, "LOG", 0.1, "FASTEST")
Corjan
Re: rotate animation bug?
I have also updated the wiki a bit to explain the difference between direct and relative modes.
Corjan
Corjan
Re: rotate animation bug?
Thanks Corjan. Glad you found the bug. I'll check out the fix once you release the first 4.1 beta.
Air Manager panels at https://www.experimentalsimavionics.com
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Re: rotate animation bug?
Confirmed. It now works. You need to use "FASTEST" for most cases I think. Perhaps it should be default rather than "DIRECT".
Air Manager panels at https://www.experimentalsimavionics.com
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D