mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
Initial AprilTag support (#458)
(Very) beta AprilTag support in PhotonVision. Disables Picam GPU acceleration until we can debug auto exposure in the MMAL driver. Co-authored-by: Banks Troutman <btrout.dhrs@gmail.com> Co-authored-by: Matt <matthew.morley.ca@gmail.com> Co-authored-by: Chris Gerth <gerth2@users.noreply.github.com> Co-authored-by: Chris <chrisgerth010592@gmail.com> Co-authored-by: mdurrani808 <mdurrani808@gmail.com>
This commit is contained in:
@@ -79,17 +79,16 @@ class DrivetrainSim {
|
||||
// Configure these to match your PhotonVision Camera,
|
||||
// pipeline, and LED setup.
|
||||
units::degree_t camDiagFOV = 170.0_deg; // assume wide-angle camera
|
||||
units::degree_t camPitch = 15_deg;
|
||||
units::meter_t camHeightOffGround = 24_in;
|
||||
units::meter_t maxLEDRange = 20_m;
|
||||
int camResolutionWidth = 640; // pixels
|
||||
int camResolutionHeight = 480; // pixels
|
||||
double minTargetArea = 10; // square pixels
|
||||
|
||||
photonlib::SimVisionSystem simVision{
|
||||
"photonvision", camDiagFOV, camPitch,
|
||||
frc::Transform2d{}, camHeightOffGround, maxLEDRange,
|
||||
camResolutionWidth, camResolutionHeight, minTargetArea};
|
||||
photonlib::SimVisionSystem simVision{"photonvision", camDiagFOV,
|
||||
frc::Transform2d{}, camHeightOffGround,
|
||||
maxLEDRange, camResolutionWidth,
|
||||
camResolutionHeight, minTargetArea};
|
||||
|
||||
// See
|
||||
// https://firstfrc.blob.core.windows.net/frc2020/PlayingField/2020FieldDrawing-SeasonSpecific.pdf
|
||||
|
||||
Reference in New Issue
Block a user