View Single Post
  #1   Spotlight this post!  
Unread 19-01-2009, 07:08
kyungjin kyungjin is offline
Software Specialist
AKA: Daniel
VRC #0646
Team Role: Programmer
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Honolulu, Hawaii
Posts: 65
kyungjin is an unknown quantity at this point
Send a message via AIM to kyungjin Send a message via MSN to kyungjin
Running the Motors Backward in WindRiver & cRIO Freezes

In order to fine-tune and test things, I was playing around with some of the motor control code and I kinda ran into this...

Code:
Jaguar1->Set(1.0);
This set of code worked and drove the motors forward at 100% power.

Code:
Jaguar1->Set(-1.0);
This set of code didn't work and whenever this function was called upon (I used buttons to control this), it would just ignore the code.


Also, for some reason, the cRIO sometimes locked up and froze, running the last set of processed instructions and refusing to run anymore. For example, I might be driving the bot's left wheels when the cRIO freezes. In that case, the cRIO refuses to take any other instructions and keeps powering the left wheels at the same speed until either the power is pulled or the Disable/Enable switch is toggled. I've reflashed this unit many times and tried tweaking the code, but nothing really worked. Anyone have the same problems or is this some kind of hardware defect?
Reply With Quote