Ahh, I think I'm starting to see the light. Thanks. To paraphrase: If the new commanded angle is 'greater than' the current angle it will rotate clockwise to get there, and if it's 'less than' the current angle it will rotate ccw to get there. Is that right?
Thus, if current is 359 and new is 361 it rotates cw. Then, if the next angle is 359 again, you just command 359 and, since it is 'less than' the current angle of 361 it will rotate ccw two degrees. It make sense now... I hope it's correct. Steve Jeff Epler wrote: > That ambiguity -- what happens when you go from 359 degrees to 1 degree > -- is why my code keeps track of "turns". You can get the same blade > angle by commanding 0 degrees, 360 degrees, 720 degrees, and so on (same > for -360). But if you change the command from 359 to 1, it will move > 358 degrees counterclockwise. If you want to move to an angle that is > in the same direction as 1 degree, but only move 2 degreees, then you > have to command 361. > > Jeff > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
