Skip to content

Commit

Permalink
finished adding teleop fields
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingMaster121 committed Feb 8, 2025
1 parent e579b02 commit 9400789
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 11 deletions.
2 changes: 1 addition & 1 deletion scoutingapp/src/components/inputs/IncrementNumberInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function IncrementNumberInput(props: ComponentSetup) {
>
-
</button>
<div className={`flex w-1/3 h-full text-2xl float-left items-center ${color == "red" ? "bg-red-400" : color == "yellow" ? "bg-amber-300" : color == "blue" ? "bg-blue-500" : color == "green" ? "bg-green-400" : "bg-white"}`}>
<div className={`flex w-1/3 h-full text-2xl float-left items-center ${color == "red" ? "bg-red-400" : color == "yellow" ? "bg-amber-300" : color == "blue" ? "bg-blue-500" : color == "green" ? "bg-green-400" : color == "purple" ? "bg-purple-400" : color == "orange" ? "bg-orange-400" : "bg-white"}`}>
<p className={"text-center w-full"}>{counter}</p>
</div>
<button
Expand Down
44 changes: 34 additions & 10 deletions scoutingapp/src/config/structure.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
},
{
"type": "IncrementNumberInput",
"text": "Teleop Coral Level 1 Cycles",
"text": "Teleop Coral L1 Cycles",
"placeholder": [
"0"
],
Expand All @@ -123,36 +123,58 @@
},
{
"type": "IncrementNumberInput",
"text": "Teleop Amp Cycles",
"text": "Teleop Coral L2 Cycles",
"placeholder": [
"0"
],
"options": [
"orange"
],
"id": "TeleopCoralL2"
},
{
"type": "IncrementNumberInput",
"text": "Teleop Coral L3 Cycles",
"placeholder": [
"0"
],
"options": [
"yellow"
],
"id": "TeleopAmp"
"id": "TeleopCoralL3"
},
{
"type": "IncrementNumberInput",
"text": "Teleop/Endgame Trap Cycles",
"text": "Teleop Coral L4 Cycles",
"placeholder": [
"0"
],
"options": [
"green"
],
"id": "TeleopTrap"
"id": "TeleopCoralL4"
},
{
"type": "IncrementNumberInput",
"text": "Teleop/Endgame Passing Cycles",
"text": "Teleop Barge Cycles",
"placeholder": [
"0"
],
"options": [
"blue"
],
"id": "TeleopPassing"
"id": "TeleopAlgaeBarge"
},
{
"type": "IncrementNumberInput",
"text": "Teleop Processor Cycles",
"placeholder": [
"0"
],
"options": [
"purple"
],
"id": "TeleopAlgaeProcessor"
},
{
"type": "GenericTextArea",
Expand Down Expand Up @@ -280,9 +302,11 @@
"AutoLeave",
"AutoNotes",
"TeleopCoralL1",
"TeleopAmp",
"TeleopTrap",
"TeleopPassing",
"TeleopCoralL2",
"TeleopCoralL3",
"TeleopCoralL4",
"TeleopAlgaeBarge",
"TeleopAlgaeProcessor",
"TeleopNotes",
"Parked",
"ClimbStatus",
Expand Down

0 comments on commit 9400789

Please sign in to comment.