-
Notifications
You must be signed in to change notification settings - Fork 1
Alloy Structure
Garrett Burroughs edited this page Dec 15, 2017
·
2 revisions
Alloy takes care of telemetry operated (teleop) functions after they have been defined, so the user does not have to worry about it.
Example
public void initilization(){
DriveTrain driveTrain = new DriveTrain(modules);
driveTrain.setInput(new ArcadeDrive());
}In the code snippet above, the robot would then drive the robot using the given control in teleop. Even though no loop action is defined for controlling the drivetrain (like it should be for standard FTC code), the drivetrain motors will still be updated every loop depending on the controls, in this case an arcade drive