![]() |
Odd math issues
Our current robot has the following function in it which adjusts the desired orientation of one of our joints based upon the joystick:
Code:
void Waist(void) {Despite this, somehow the value of waist_theta is sporadically jumping instantly to a large negative number. Any ideas? I'm suspecting some unusual type conversion issue. |
Re: Odd math issues
I would tend to guess your problem is in an interrupt routine. Are you saving all the appropriate sections?
Read this post for more details: http://www.chiefdelphi.com/forums/sh...ad.php?t=44046 |
Re: Odd math issues
Quote:
We simplified the routine and it seems to be working now, however. I'll dig into this more when we get back from the CT scrimmage. |
| All times are GMT -5. The time now is 04:46. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi