Results 11 to 15 of 15
-
10-18-2011, 08:01 AM #11
- Join Date
- Jan 2008
- Location
- Sydney, Australia
- Posts
- 29
Re: SIOC and Encoders (ROTATE function, etc)
-
10-18-2011, 08:17 AM #12
- Join Date
- Jul 2013
- Posts
- 917
Re: SIOC and Encoders (ROTATE function, etc)
Glad you got it "sorted". SIOC is powerful, but sometimes challenging, particularly the principle that the code attached to a variable is only executed when the variable changes value - caught me out many times
-
Post Thanks / Like - 1 Thanks, 0 Likes, 0 Dislikes
aVaTar thanked for this post
-
10-18-2011, 08:23 AM #13
- Join Date
- Jan 2008
- Location
- Sydney, Australia
- Posts
- 29
Re: SIOC and Encoders (ROTATE function, etc)
Yep me too... I was going nuts with the way it defied "standard practices" and that there was no clear documentation as to what exactly happens. Or I might have missed it when fiddling about yesterday.
Must admit that code attached to variables is very natural to me. They are called event handlers in JavaScript or a Window Procedure in Windows API. Then there're processor interrupts that function in a similar way with interrupt handler only executed when hw requests it(say encoder changes value) Anyway that's off topic.
Thanks a lot guys, I appreciate your help!
PS. MCP is now coming along nicely
-
10-18-2011, 10:15 AM #14
Re: SIOC and Encoders (ROTATE function, etc)
Hi guys,
SIOC's statement:
Code:v2 = ROTATE 0 359 L0
In C/C++ one would write:
Code:v2 = Rotate(0, 359, L0, v2);
best regards,
Nico KaanLast edited by kiek; 10-18-2011 at 10:24 AM.
-
10-18-2011, 10:24 AM #15
Re: SIOC and Encoders (ROTATE function, etc)
Indeed. SIOC is an 'event driven scripting language', not a normal procedural programming language.
Read more about SIOC and 'the golden rule' here.
regards,
Nico
Hi...realize this has been a long time, but I'm heading down the path of building my own 777...
B777 Overhead Panel Design