Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   PLEASE HELP!!! (http://www.chiefdelphi.com/forums/showthread.php?t=135541)

Jasmine11197 03-07-2015 11:52 AM

PLEASE HELP!!!
 
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 03-07-2015 02:03 PM

Re: PLEASE HELP!!!
 
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.

GeeTwo 03-07-2015 06:10 PM

Re: PLEASE HELP!!!
 
Also, which robot template do you use (sample, iterative, command)?

At a minimum, you should have at least two autonomous routines this year:
  1. drive forward at a speed and for a duration which moves you forward about 3 meters, to participate in a robot set
  2. 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 03-07-2015 07:16 PM

Re: PLEASE HELP!!!
 
Quote:

Originally Posted by Sparkyshires (Post 1454757)
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?

chloe 03-10-2015 03:17 AM

Re: PLEASE HELP!!!
 
Have you read WPILib's screensteps live? http://wpilib.screenstepslive.com/s/...g-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/...onomous-period


All times are GMT -5. The time now is 10:46 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi