13
13
14
14
import com .ctre .phoenix .led .CANdleConfiguration ;
15
15
import com .ctre .phoenix .led .RainbowAnimation ;
16
+ import com .ctre .phoenix .led .StrobeAnimation ;
16
17
import com .ctre .phoenix6 .configs .CANcoderConfiguration ;
17
18
import com .ctre .phoenix6 .configs .CANrangeConfiguration ;
18
19
import com .ctre .phoenix6 .configs .TalonFXConfiguration ;
@@ -62,11 +63,11 @@ public static class constControllers {
62
63
public static final double DRIVER_LEFT_STICK_DEADBAND = 0.05 ;
63
64
public static final boolean SILENCE_JOYSTICK_WARNINGS = true ;
64
65
65
- public static final double HAS_CORAL_RUMBLE_INTENSITY = 0.5 ;
66
+ public static final double HAS_CORAL_RUMBLE_INTENSITY = 1 ;
66
67
public static final double HAS_ALGAE_RUMBLE_INTENSITY = 1 ;
67
68
public static final double READY_TO_PLACE_RUMBLE_INTENSITY = 0.5 ;
68
69
public static final double READY_TO_RAISE_INTENSITY = 0.6 ;
69
- public static final double READY_TO_LEAVE_INTENSITY = 0.7 ;
70
+ public static final double READY_TO_LEAVE_INTENSITY = 1 ;
70
71
71
72
}
72
73
@@ -438,7 +439,7 @@ public static class constClimber {
438
439
public static Angle MAX_POSITION = Units .Rotations .of (166.69 );
439
440
public static Angle AT_POSITION_TOLERANCE = Units .Rotations .of (10 );
440
441
441
- public static final double MATCH_CLIMBING_TIME = 30 .0 ;
442
+ public static final double MATCH_CLIMBING_TIME = 50 .0 ;
442
443
443
444
static {
444
445
CLIMBER_CONFIG .MotorOutput .NeutralMode = NeutralModeValue .Brake ;
@@ -802,50 +803,49 @@ public static class constLED {
802
803
public static final int LED_STRIP_START_INDEX = 1 ;
803
804
804
805
// Climbing
805
- public static final int [] LED_CLIMBER_DEPLOYING = { 242 , 23 , 23 }; // imposter red
806
- public static final int [] LED_CLIMBER_RETRACTING = { 0 , 0 , 0 }; // Placeholder values
807
- public static final int [] LED_MANUAL_CLIMBER_DEPLOYING = { 0 , 0 , 0 }; // Placeholder values
806
+ public static final int [] LED_CLIMBER_DEPLOYING = null ;
807
+ public static final int [] LED_CLIMBER_RETRACTING = null ;
808
+ public static final int [] LED_MANUAL_CLIMBER_DEPLOYING = null ;
808
809
809
810
// first scoring element
810
- public static final int [] LED_CLEANING_L2_REEF = { 120 , 110 , 0 }; // camo green
811
- public static final int [] LED_CLEANING_L3_REEF = { 210 , 225 , 72 }; // lime
812
- public static final int [] LED_EJECT_CORAL = { 90 , 3 , 3 }; // maroon
813
- public static final int [] LED_INTAKE_CORAL_HOPPER = { 0 , 255 , 0 };// green
814
- public static final int [] LED_INTAKE_ALGAE_GROUND = { 0 , 0 , 255 }; // blue
811
+ public static final int [] LED_CLEANING_L2_REEF = null ;
812
+ public static final int [] LED_CLEANING_L3_REEF = null ;
813
+ public static final int [] LED_EJECT_CORAL = null ;
814
+ public static final int [] LED_INTAKE_CORAL_HOPPER = { 0 , 0 , 255 };// blue
815
+ public static final int [] LED_INTAKE_ALGAE_GROUND = null ;
815
816
816
817
// hold scoring elements
817
818
818
819
// TODO: Implement CANdle being commanded half & half (top half w/ algae, bottom
819
820
// half w/ coral)
820
- public static final int [] LED_HAS_ALGAE = { 0 , 255 , 255 }; // cyan
821
- public static final int [] LED_HAS_CORAL = { 255 , 0 , 0 }; // red
822
- public static final int [] LED_HAS_BOTH = { 255 , 0 , 255 }; // Pinkish purple
821
+ public static final int [] LED_HAS_ALGAE = { 89 , 252 , 236 }; // algae-side teal
822
+ public static final int [] LED_HAS_CORAL = { 255 , 255 , 255 }; // elevator-side white
823
+ public static final int [] LED_HAS_BOTH = null ;
823
824
824
825
// prep algae
825
- public static final int [] LED_PREP_ALGAE_ZERO = { 0 , 255 , 255 }; // cyan
826
- public static final int [] LED_PREP_ALGAE_ZERO_WITH_CORAL = { 0 , 0 , 0 }; // Placeholder values
827
- public static final int [] LED_PREP_NET = { 255 , 0 , 200 }; // magenta
828
- public static final int [] LED_PREP_NET_WITH_CORAL = { 0 , 0 , 0 }; // Placeholder values
829
- public static final int [] LED_PREP_PROCESSOR = { 255 , 150 , 0 }; // orange
830
- public static final int [] LED_PREP_PROCESSOR_WITH_CORAL = { 0 , 0 , 0 }; // Placeholder values
826
+ public static final int [] LED_PREP_ALGAE_ZERO = null ;
827
+ public static final int [] LED_PREP_ALGAE_ZERO_WITH_CORAL = null ;
828
+ public static final int [] LED_PREP_NET = null ;
829
+ public static final int [] LED_PREP_NET_WITH_CORAL = null ;
830
+ public static final int [] LED_PREP_PROCESSOR = null ;
831
+ public static final int [] LED_PREP_PROCESSOR_WITH_CORAL = null ;
831
832
832
833
// prep coral
833
- public static final int [] LED_PREP_CORAL_LV = { 80 , 49 , 76 }; // grimace purple
834
- public static final int [] LED_PREP_CORAL_LV_WITH_ALGAE = { 0 , 0 , 0 }; // Placeholder values
835
- public static final int [] LED_PREP_CORAL_ZERO = { 20 , 100 , 0 }; // forest green
836
- public static final int [] LED_PREP_CORAL_ZERO_WITH_ALGAE = { 0 , 0 , 0 }; // Placeholder values
834
+ public static final int [] LED_PREP_CORAL_LV = null ;
835
+ public static final int [] LED_PREP_CORAL_LV_WITH_ALGAE = null ;
836
+ public static final int [] LED_PREP_CORAL_ZERO = null ;
837
+ public static final int [] LED_PREP_CORAL_ZERO_WITH_ALGAE = null ;
837
838
838
839
// scoring
839
- public static final int [] LED_SCORING_ALGAE = { 196 , 211 , 0 }; // Shreck green
840
- public static final int [] LED_SCORING_ALGAE_WITH_CORAL = { 0 , 0 , 0 }; // Placeholder values
841
- public static final int [] LED_PLACE_CORAL = { 251 , 251 , 0 }; // yellow
842
- public static final int [] LED_PLACE_CORAL_WITH_ALGAE = { 0 , 0 , 0 }; // Placeholder values
840
+ public static final int [] LED_SCORING_ALGAE = null ;
841
+ public static final int [] LED_SCORING_ALGAE_WITH_CORAL = null ;
842
+ public static final int [] LED_PLACE_CORAL = null ;
843
+ public static final int [] LED_PLACE_CORAL_WITH_ALGAE = null ;
843
844
844
845
// second scoring element
845
846
public static final int [] LED_CLEANING_L2_REEF_WITH_CORAL = { 0 , 0 , 0 };
846
847
public static final int [] LED_CLEANING_L3_REEF_WITH_CORAL = { 0 , 0 , 0 };
847
- public static final int [] LED_INTAKE_CORAL_WITH_ALGAE = { 0 , 0 , 0 };
848
-
848
+ public static final int [] LED_INTAKE_CORAL_WITH_ALGAE = { 0 , 0 , 255 };// blue
849
849
// that other guy what a loser
850
850
public static final int [] LED_NONE = { 0 , 0 , 0 }; // no color
851
851
@@ -854,6 +854,19 @@ public static class constLED {
854
854
public static final int [] ALGAE_ZERO_SUCCESS = { 0 , 0 , 0 }; // no color
855
855
public static final int [] ELEVATOR_ZERO_FAILED = { 255 , 0 , 0 }; // red
856
856
public static final int [] ELEVATOR_ZERO_SUCCESS = { 0 , 0 , 0 }; // no color
857
+
858
+ public static final StrobeAnimation READY_TO_LIFT = new StrobeAnimation (252 , 179 , 89 ,
859
+ 0 , 0.05 , LED_NUMBER , LED_STRIP_START_INDEX ); // orange
860
+
861
+ public static final StrobeAnimation READY_TO_PLACE = new StrobeAnimation (200 , 89 , 252 ,
862
+ 0 , 0.05 , LED_NUMBER , LED_STRIP_START_INDEX ); // purple
863
+
864
+ public static final StrobeAnimation READY_TO_LEAVE = new StrobeAnimation (0 , 255 , 0 ,
865
+ 0 , 0.05 , LED_NUMBER , LED_STRIP_START_INDEX ); // green
866
+
867
+ public static final StrobeAnimation ENDGAME_TIMER = new StrobeAnimation (255 , 0 , 0 ,
868
+ 0 , 0.05 , LED_NUMBER , LED_STRIP_START_INDEX ); // red
869
+
857
870
}
858
871
859
872
}
0 commit comments