Go to Post I'm so conflicted right now. On one hand, you made the same page as a celebrity. On the other hand.... Justin Bieber. - Akash Rastogi [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-02-2011, 20:51
dotbran dotbran is offline
Registered User
AKA: Brandon Olsen
FRC #3219 (TREAD)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Auburn, WA
Posts: 68
dotbran is on a distinguished road
Re: Autonomous failing

Quote:
Originally Posted by Greg McKaskle View Post
I think the first thing I'd do is flip to Diagnostics tab and see what errors are pouring onto the display. That may help to explain the nonmoving robot.

Second, feel free to open the auto VI and probe stuff. Put the robot on blocks and hold the carpet near the sensors. Is the code sending expected numbers to the motors? How does this compare to teleop sending similar numbers?

Greg McKaskle
After rebuilding and redeploying the code a few dozen times, the Jaguars are giving a response that looks right judging from the LEDs. However, the mechanics have my base, so I am not sure.

I'll report back with data tomorrow if the problem persists.
Reply With Quote
  #2   Spotlight this post!  
Unread 04-02-2011, 23:42
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Autonomous failing

For the joystick problem, my advice is to not mess with the joystick values. Negating them is pretty much a hack. What's going on is in begin.vi with the open4motors command, you put in some "invert motors" in there, which would need to be changed. What I do for these is put the robot on it's side so you can see each wheel (blocks will work okay, if you have to). Then push the joystick all the way forward (make sure you remove all the invert commands in teleop). If any (or all) of the motors are going the incorrect way, correct them. Make sure all three basic commands work (forward/backward should have all wheels going the same way; strafing should have each side's wheels going either towards or away each other, and the two side should be opposite; and rotating should have one side go forward and the other side go backward.)

If only one or two of those commands work and the other ones make the robot go wonky, make sure there aren't ANY inverts for your joysticks (except for the y one in the drive function) and if there aren't you can invert stuff.
Reply With Quote
  #3   Spotlight this post!  
Unread 05-02-2011, 13:44
dotbran dotbran is offline
Registered User
AKA: Brandon Olsen
FRC #3219 (TREAD)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Auburn, WA
Posts: 68
dotbran is on a distinguished road
Re: Autonomous failing

Quote:
Originally Posted by WizenedEE View Post
For the joystick problem, my advice is to not mess with the joystick values. Negating them is pretty much a hack. What's going on is in begin.vi with the open4motors command, you put in some "invert motors" in there, which would need to be changed.
I forgot to mention it occurred randomly. On our initial run everything was fine, then everything started screwing up after a normal deploy without any drive-related changes. With our current inversion settings (which are correct) and with the negated and swapped joysticks autonomous works correctly (the Jag LEDs indicate forward motion from the correct controllers).

Last edited by dotbran : 05-02-2011 at 14:05. Reason: It can, in fact, be an inversion issue.
Reply With Quote
  #4   Spotlight this post!  
Unread 05-02-2011, 14:03
dotbran dotbran is offline
Registered User
AKA: Brandon Olsen
FRC #3219 (TREAD)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Auburn, WA
Posts: 68
dotbran is on a distinguished road
Re: Autonomous failing

Added conditional inversion. It seems to be working, but then again I don't have the base to test with.
Reply With Quote
Reply


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


All times are GMT -5. The time now is 21:20.

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