@ Andy, I will test your code. I just found these ones online. I did only marginal testsing, hehe
@ Muntoo, I wish I could use nested #defines, but the ROBOTC compiler barfs when I do that
@ Matt, this is the conditional expression. Consider the following:
Code: Select all
int foo = (a > b) ? a : b;
1 ---------^^^^^
2 ------------------^
3-----------------------^
Part 1: the condition, in this case "is a greater than b"
Part 2: the value the expression will be evaluated to should the condition be true
Part 3: the value the expression will be evaluated to should the condition be false
It's functionally equivalent to
Regards,
Xander