Go to Post Bottom line for us is this... By elevating what ANY team can do, we also push those outstanding teams to go even further. - Rich Kressly [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 03-02-2011, 20:25
dmitch's Avatar
dmitch dmitch is offline
Chief Head Electrical Guy
AKA: Daniel Mitchell
FRC #1997 (Stag Robotics)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Bishop Miege High School
Posts: 142
dmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the rough
Following Line Sensors

Hi I'm a rookie programmer and I was wondering how I should change the LabView autonomous code to work with our mecanums if we align the sensors as the autonomous code shows.
Basically, what all do we need to change, and does it automatically drive itself. But mostly how to work with mecanums.
__________________
Reply With Quote
  #2   Spotlight this post!  
Unread 03-02-2011, 20:45
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: Following Line Sensors

The default code uses the Arcade form of Robot Drive. Since your robot teleop function has been modified to be able to drive and steer the robot, try making similar change to the autonomous.

The two control elements used in autonomous are the steering amount and forward velocity. The line sensors determine whether to drive left, right, straight, or stop. Try to use the mecanum version of drive to perform these actions, and perhaps put the code into the case statement.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 03-02-2011, 20:46
bladetech932's Avatar
bladetech932 bladetech932 is offline
Programmer of awesome
AKA: Jon
FRC #0932 (Circuit Chargers)
Team Role: College Student
 
Join Date: May 2009
Rookie Year: 2009
Location: Tulsa
Posts: 242
bladetech932 is on a distinguished road
Re: Following Line Sensors

You can use the arcade drive.vi to move the robot you don't need the mecanum.vi unless you want to strafe
__________________
Expect the best, Prepare for the worst
Reply With Quote
  #4   Spotlight this post!  
Unread 04-02-2011, 08:22
dmitch's Avatar
dmitch dmitch is offline
Chief Head Electrical Guy
AKA: Daniel Mitchell
FRC #1997 (Stag Robotics)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Bishop Miege High School
Posts: 142
dmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the rough
Re: Following Line Sensors

Ok I will just wire it to use arcade, Thanks!
__________________
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:21.

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