Skip to content
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.

State Machines

Teo Welton edited this page Nov 15, 2023 · 5 revisions

State Machines

Auton

stateDiagram-v2
    d2bb : Driving to Backboard
    sob : Scoring on Backboard
    d2ps : Driving to Pixel Stack
    pp : Pickup Pixel
    park : Park

    [*]-->d2bb
    d2bb-->sob : Arrived at Location
    sob-->d2ps : If have time & Claw Empty
    sob-->park : If Low Time & Claw Empty
    d2ps-->pp : Arrived at Location
    pp-->d2bb : Pixels in intake
    park-->[*]

Loading

TeleOp

stateDiagram-v2
    d2ps : Driving to Pixel Stack
    d2bb : Driving to Backboard
    sob : Scoring on Backboard

    [*]-->d2ps
    d2ps-->d2bb : Pixel intaked
    d2bb-->sob : Arrived at location & Pixel in claw
    sob-->d2ps : No pixel in claw
    sob-->[*] : Out of time
Loading
Clone this wiki locally