Skip to content

Commit

Permalink
made some minor changes to auto
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingMaster121 committed Feb 8, 2025
1 parent 7d287a7 commit c300cc0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 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
28 changes: 23 additions & 5 deletions scoutingapp/src/config/structure.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
"placeholder": [
"0"
],
"options": [
"red"
],
"id": "AutoCoralL1"
},
{
Expand All @@ -86,43 +89,58 @@
"placeholder": [
"0"
],
"options": [
"orange"
],
"id": "AutoCoralL2"
},
{
"type": "IncrementNumberInput",
"text": "Auto Coral L3 Cycles",
"placehoder": [
"placeholder": [
"0"
],
"options": [
"yellow"
],
"id": "AutoCoralL3"
},
{
"type": "IncrementNumberInput",
"text": "Auto Coral L4 Cycles",
"placehoder": [
"placeholder": [
"0"
],
"options": [
"green"
],
"id": "AutoCoralL4"
},
{
"type": "IncrementNumberInput",
"text": "Auto Barge Cycles",
"placehoder": [
"placeholder": [
"0"
],
"options": [
"blue"
],
"id": "AutoBarge"
},
{
"type": "IncrementNumberInput",
"text": "Auto Processor Cycles",
"placehoder": [
"placeholder": [
"0"
],
"options": [
"purple"
],
"id": "AutoProcessor"
},
{
"type": "GenericToggle",
"text": "Did they leave the starting zone (white line)?",
"text": "Did they leave the starting zone (black line)?",
"id": "AutoLeave"
},
{
Expand Down

0 comments on commit c300cc0

Please sign in to comment.