2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
CameraInterface Class Reference

Provides methods for interacting with the camera on a high level. More...

#include <vision_subsystem.h>

Public Member Functions

 CameraInterface ()
 
std::optional< LimelightTargetGetClosestTarget ()
 Get the closest target the camera can see CAN RETURN NONE.
 
void SetDriverMode (bool mode)
 Turns the camera's driver mode on and off.
 
void RequestTargetFilterReset ()
 

Public Attributes

LimelightTarget m_target
 object that holds the current target seen by the camera
 

Detailed Description

Provides methods for interacting with the camera on a high level.

Constructor & Destructor Documentation

◆ CameraInterface()

CameraInterface::CameraInterface ( )
default

Member Function Documentation

◆ GetClosestTarget()

std::optional< LimelightTarget > CameraInterface::GetClosestTarget ( )

Get the closest target the camera can see CAN RETURN NONE.

Returns
std::optional<photonlib::PhotonTrackedTarget>

◆ RequestTargetFilterReset()

void CameraInterface::RequestTargetFilterReset ( )

◆ SetDriverMode()

void CameraInterface::SetDriverMode ( bool  mode)

Turns the camera's driver mode on and off.

Parameters
modeTrue is drive control. False is no drive control

Member Data Documentation

◆ m_target

LimelightTarget CameraInterface::m_target

object that holds the current target seen by the camera


The documentation for this class was generated from the following files: