Skip to content

Multiple iterations during auto target tracking #55

@kreeve

Description

@kreeve

When we want to track the target in auto, we should automatically run the Take Picture->Turn to Angle until we're either close within a tolerance to the angle or we reach a certain number of iterations.

![Alt text](http://g.gravizo.com/g?
@startuml;
Participant "Auto Aim Command" as AIM;
Participant "Vision" as VIS;
Participant "Drivetrain" as DT;
loop N times;
AIM->VIS: Request current angle to target;
activate VIS;
VIS->AIM: Return current angle;
deactivate VIS;
alt Angle is within tolerance;
AIM->AIM: Terminate loop and shoot;
else Angle outside tolerance;
AIM->DT: Turn to angle;
activate DT;
DT->AIM: Angle or timeout reached;
deactivate DT;
end;
end;
@enduml)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions