|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Autonomous mode
Does anyone have an example and can kind of explain how to program in autonomous.vi?
|
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||||
|
|||||
|
Re: Autonomous mode
Here's another sample Autonomous that just drives a little.
|
|
#4
|
|||
|
|||
|
Re: Autonomous mode
Quote:
|
|
#5
|
|||
|
|||
|
Re: Autonomous mode
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.
|
|
#6
|
|||
|
|||
|
Re: Autonomous mode
Quote:
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? |
|
#7
|
|||||
|
|||||
|
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" |
|
#8
|
|||
|
|||
|
Re: Autonomous mode
Quote:
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. |
|
#9
|
|||
|
|||
|
Re: Autonomous mode
Just saw this and wanted to clarify.
Quote:
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|