-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathNoteDetectionIO.java
More file actions
29 lines (23 loc) · 964 Bytes
/
NoteDetectionIO.java
File metadata and controls
29 lines (23 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.subsystems.vision;
import frc.robot.subsystems.vision.Vision.VisionConstants;
import java.util.ArrayList;
import java.util.List;
import org.photonvision.targeting.PhotonTrackedTarget;
/** Add your docs here. */
public interface NoteDetectionIO { //TODO make vision superinterface/class?
public static class NoteDetectionIOInputs {
public double timestamp = 0.0;
public double latency = 0.0;
public List<PhotonTrackedTarget> targets = new ArrayList<>(); // TODO protobuf
public double numTargets = 0;
public VisionConstants constants;
public double yaw = 0.0;
public double pitch = 0.0;
public double distance = 0.0;
}
public void updateInputs(NoteDetectionIOInputs inputs);
public String getName();
}