-
Notifications
You must be signed in to change notification settings - Fork 0
Chassis
johnmeshulam edited this page Nov 10, 2019
·
3 revisions
The RobotChassis class is an implementation of a basic robot chassis.
The RobotChassis can be used for any chassis:
- With 2 large motors (They could be inverted!)
- With a 1:1 gear ratio to the wheels
To define a new RobotChassis, do not create the LargeMotors! Instead, use:
new RobotChassis(String leftMotorName, char leftMotorPort, String rightMotorName, char rightMotorPort, boolean isInverted);
(There are a few constructors, in case some parameters are not specified)The chassis can be accessed with RobotMap.getChassis().
Which can then be used as follows:
RobotMap.getChassis.forwardDrive(1.0);The chassis has a few driving functions that make sure both wheels are synchronized while moving. Speed can be set individually for each motor or collectively for both.
- Overview
- Code Documentation
- Writing our first run
- Setting Up
- Defining hardware
- Writing a basic Motor Control run
- [Adding sensors and waits]
- [Defining Runs]
- Writing our second run
- [Using the chassis]
- [Finishing up]
- [Line follower code example]