Go to Post Oh, you mean the refs. The only hand signal I've seen the judges use is the hi-five. - RoboMom [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-2015, 22:20
itwasntme455 itwasntme455 is offline
Registered User
AKA: Brandon
FRC #4791 (Pandroids)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2013
Location: South Bend, Indiana
Posts: 26
itwasntme455 is an unknown quantity at this point
Autonomous mode

Does anyone have an example and can kind of explain how to program in autonomous.vi?
Reply With Quote
  #2   Spotlight this post!  
Unread 04-02-2015, 22:24
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 mode

If you have the teleOp working on a robot, you should be able to carefully remove the comment structure from the auto code. There are two approaches. One makes calls to RobotDrive and delay functions. The other does this in a loop with array of points that defines the movements.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 05-02-2015, 07:35
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Autonomous mode

Here's another sample Autonomous that just drives a little.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #4   Spotlight this post!  
Unread 05-02-2015, 13:03
itwasntme455 itwasntme455 is offline
Registered User
AKA: Brandon
FRC #4791 (Pandroids)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2013
Location: South Bend, Indiana
Posts: 26
itwasntme455 is an unknown quantity at this point
Re: Autonomous mode

Quote:
Originally Posted by Mark McLeod View Post
Here's another sample Autonomous that just drives a little.
What does wait mean?
Reply With Quote
  #5   Spotlight this post!  
Unread 05-02-2015, 13:09
aeastet aeastet is offline
Programming Mentor
AKA: Tim Easterling
FRC #6043 (Allegan Tigers Robotics)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Holland, MI
Posts: 123
aeastet is an unknown quantity at this point
Re: Autonomous mode

Quote:
Originally Posted by itwasntme455 View Post
What does wait mean?
For the code that was provided the wait will keep you in that frame for the time that is connected. The wait is in milliseconds. If there is a 2000 constant connected then it will stay in that frame for 2 seconds.
Reply With Quote
  #6   Spotlight this post!  
Unread 05-02-2015, 13:35
itwasntme455 itwasntme455 is offline
Registered User
AKA: Brandon
FRC #4791 (Pandroids)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2013
Location: South Bend, Indiana
Posts: 26
itwasntme455 is an unknown quantity at this point
Re: Autonomous mode

Quote:
Originally Posted by Mark McLeod View Post
Here's another sample Autonomous that just drives a little.
I keep getting this error in the simulator.

ERROR -44061 occurred at "Left and Right Motors" in the VI path: Robot Main.vi
FRC: The loop that contains RobotDrive is not running fast enough. This error can occur if the loop contains too much code, or if one or more other loops are starving the RobotDrive loop.

What does it mean?
Reply With Quote
  #7   Spotlight this post!  
Unread 05-02-2015, 14:20
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Autonomous mode

It means you probably copied the example a little too exactly.
Your drive motors are named "Left and Right Motors"
The example however uses motors named "Robot Drive"

Change the name in the example from "Robot Drive" to "Left and Right Motors"
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #8   Spotlight this post!  
Unread 05-02-2015, 15:04
aeastet aeastet is offline
Programming Mentor
AKA: Tim Easterling
FRC #6043 (Allegan Tigers Robotics)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Holland, MI
Posts: 123
aeastet is an unknown quantity at this point
Re: Autonomous mode

Quote:
Originally Posted by Mark McLeod View Post
It means you probably copied the example a little too exactly.
Your drive motors are named "Left and Right Motors"
The example however uses motors named "Robot Drive"

Change the name in the example from "Robot Drive" to "Left and Right Motors"
You will also see this in LabVIEW most of the time. It is a warning and as long as you do not get a fault then you are OK. If your timeout gets too long you will get shut down during the match. Everything uses a watchdog timer. Basically it tells the field that you are still there. If it takes too long then it shuts you down.

Make sure that you are not putting all of your code in the teleop loop. You need to move non time critical operation outside of teleop.
Reply With Quote
  #9   Spotlight this post!  
Unread 10-02-2015, 22:28
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 mode

Just saw this and wanted to clarify.

Quote:
You will also see this in LabVIEW most of the time. It is a warning and as long as you do not get a fault then you are OK. If your timeout gets too long you will get shut down during the match. Everything uses a watchdog timer. Basically it tells the field that you are still there. If it takes too long then it shuts you down.
This is a safety feature similar to a watchdog, but more specific to the robot base. It is enabled by default so that debugging the robot is somewhat more safe. If the safety feature is enabled, it will zero the motors after 100ms, but will not result in a match-long disable or anything like that.

As for whether this happens more often in LV, it is pretty common to see it at the end of a team's autonomous but before the end of the period. Since the robot is already finished moving, it causes no harm.

Greg McKaskle
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:30.

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