Added some more sane code that has no effect because it only calls empty methods.
This commit is contained in:
parent
71bdaab9bb
commit
4488d771b4
@ -68,6 +68,7 @@ private:
|
|||||||
void AutonomousInit()
|
void AutonomousInit()
|
||||||
{
|
{
|
||||||
shooter.CalibrateRamp();
|
shooter.CalibrateRamp();
|
||||||
|
shooter.SetRamp(Shoot);
|
||||||
|
|
||||||
autoSelected = *((std::string*)chooser->GetSelected());
|
autoSelected = *((std::string*)chooser->GetSelected());
|
||||||
//std::string autoSelected = SmartDashboard::GetString("Auto Selector", autoNameDefault);
|
//std::string autoSelected = SmartDashboard::GetString("Auto Selector", autoNameDefault);
|
||||||
@ -92,6 +93,7 @@ private:
|
|||||||
void TeleopInit()
|
void TeleopInit()
|
||||||
{
|
{
|
||||||
shooter.CalibrateRamp();
|
shooter.CalibrateRamp();
|
||||||
|
shooter.SetRamp(Shoot); // start in the full up position!
|
||||||
}
|
}
|
||||||
|
|
||||||
void TeleopPeriodic()
|
void TeleopPeriodic()
|
||||||
|
@ -21,9 +21,10 @@
|
|||||||
*/
|
*/
|
||||||
enum RampState {
|
enum RampState {
|
||||||
Shoot = 0, // 0 rotations
|
Shoot = 0, // 0 rotations
|
||||||
Half = 1, // 1 rotation?
|
Half = (RAMP_LOWER_DURATION / 2), // 1 rotation?
|
||||||
Down = 2, // 2 rotations?
|
Down = RAMP_LOWER_DURATION, // 2 rotations?
|
||||||
Uncalibrated = -1
|
Uncalibrated = -1,
|
||||||
|
Transitioning = -2
|
||||||
};
|
};
|
||||||
|
|
||||||
class Shooter {
|
class Shooter {
|
||||||
@ -85,6 +86,8 @@ private:
|
|||||||
CANTalon *ramp;
|
CANTalon *ramp;
|
||||||
|
|
||||||
RampState rampState;
|
RampState rampState;
|
||||||
|
RampState targetState;
|
||||||
|
RampState previousState;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* SRC_SHOOTER_H_ */
|
#endif /* SRC_SHOOTER_H_ */
|
||||||
|
Reference in New Issue
Block a user