Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Make Charge command speed and time dependent #20

Open
AndrewLester opened this issue Nov 24, 2020 · 0 comments
Open

Make Charge command speed and time dependent #20

AndrewLester opened this issue Nov 24, 2020 · 0 comments
Assignees

Comments

@AndrewLester
Copy link
Member

The speed of the charge auto and the amount of time it runs for should be specified in the Charge constructor. This means that the withTimeout method will have to be replaced by the following:

  1. Have the Charge class extend WaitCommand.
  2. Call the super class constructor with the time specified in the Charge constructor (e.x. super(timeout) where timeout is a parameter of the Charge constructor).

ParallelRaceGroup charge = new ChargeAutoCommand(driveSubsystem, 0.2).withTimeout(1);

@AndrewLester AndrewLester changed the title Make Charge command speed and time independent Make Charge command speed and time dependent Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants