Go to Post I'm all for an aggressive game, but lets not crack each others lexan. - Molten [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, 19:02
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
Autonomous failing

At one point the default autonomous code (only change was tank drive) was working for us with very few problems with tracking, but now when we enable Autonomous nothing happens. The line sensors themselves seem to be working because the LEDs are changing when switching from light to dark surfaces, and nothing has changed in the programming or electronics. Does anyone know what the cause of this problem may be?
Reply With Quote
  #2   Spotlight this post!  
Unread 04-02-2011, 19:10
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

Additional issue: Our axes are screwed up. On Joystick 1 we have to switch Y and Rotation when inputting to either of the Holonomic Drive VIs (using Cartesian at the moment) and we have to negate the X axis. This problem is persistent on any USB port with any joystick. Since our drive is working now it's not a major concern, but I am still curious.

Last edited by dotbran : 04-02-2011 at 20:41.
Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2011, 20:47
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Autonomous failing

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
Reply With Quote
  #4   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
  #5   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
  #6   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
  #7   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