Go to Post Remind me again. Why do we let the GDC hold us captive to these hints year after year? - jholman [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 01-19-2009, 07:08 AM
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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cRIO Not Running Program railerobotics NI LabVIEW 5 01-18-2009 08:48 AM
CRIO not working with Windriver dpeterson3 C/C++ 7 01-07-2009 08:49 PM
Can you hurdle the Trackball's backward? Sila741 Rules/Strategy 14 01-08-2008 02:30 AM
Heck Freezes Over: Windows 2000 & NT Source Code Leaked!?!? Joe Matt Chit-Chat 9 02-14-2004 09:14 PM
Motors Running Fwd/Rev Paul Programming 3 02-05-2004 05:17 PM


All times are GMT -5. The time now is 09:43 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi