View Full Version : PLEASE HELP!!!
Jasmine11197
07-03-2015, 11:52
Hello firends,
the Israeli regional will start in couple days, our team still have problem with the autonuomos , and sadly our mentor has to stay at the hospital with his son
We dont know how to write the code correctly
If anyone can send me any file or examples , it would be really helpful and will be appreciated!
We use C++
Thank you already!
Sparkyshires
07-03-2015, 14:03
What drivetrain do you use?
Have you checked the screensteps?
How much software do you know?
Just asking for code is a fairly broad topic, if you can supply more information, more people will be able to help you.
Also, which robot template do you use (sample, iterative, command)?
At a minimum, you should have at least two autonomous routines this year:
drive forward at a speed and for a duration which moves you forward about 3 meters, to participate in a robot set
do nothing, to be used if at least one of your alliance partners cannot participate in a robot set and another has a complex autonomous for which you should just stay out of the way.
You can select which to use either through the driver station or a switch on the robot connected to a DIO port. As Sparkyshires noted, the screensteps are a good place to start.
Even if you have any higher autonomous ambitions, you should still start with these two to figure out how it works with something simple.
nandeeka
07-03-2015, 19:16
What drivetrain do you use?
Have you checked the screensteps?
How much software do you know?
Which sensors do you have/can you put on your robot?
Have you read WPILib's screensteps live? http://wpilib.screenstepslive.com/s/4485/m/13810/l/241853-choosing-a-base-class
If your base class is IterativeRobot, you will write your autonomous in
public void autonomousInit() {
// called when you enter autonomous
}
public void autonomousPeriodic() {
// called every loop through your code
}
If you know how to write teleop code, it is a simple matter to transfer that to autonomous.
For command-based robot, read the guide here: http://wpilib.screenstepslive.com/s/4485/m/13810/l/241905-running-commands-during-the-autonomous-period
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.