HoloLib
High-performance holonomic (X-Drive) control library for VEX V5
Loading...
Searching...
No Matches
hololib::DriverReplay Class Reference

#include <replay.hpp>

Static Public Member Functions

static void getControllerInput (pros::Controller master)
 Gets controller input.
 
static void logReplayData (pros::Controller master, int timeout_ms, std::function< Pose(bool)> poseGetter)
 Logs replay data to a file.
 
static void runDriverReplay (std::vector< PathPoint > data, float lookahead)
 Runs the driver replay.
 

Detailed Description

Definition at line 10 of file replay.hpp.

Member Function Documentation

◆ getControllerInput()

static void hololib::DriverReplay::getControllerInput ( pros::Controller  master)
static

Gets controller input.

Parameters
masterThe controller to get input from.
Returns
void

◆ logReplayData()

static void hololib::DriverReplay::logReplayData ( pros::Controller  master,
int  timeout_ms,
std::function< Pose(bool)>  poseGetter 
)
static

Logs replay data to a file.

Parameters
masterThe controller to get input from.
timeout_msThe time to log data for.
Returns
void

◆ runDriverReplay()

static void hololib::DriverReplay::runDriverReplay ( std::vector< PathPoint data,
float  lookahead 
)
static

Runs the driver replay.

Parameters
dataThe path data to use for the replay.
lookaheadThe lookahead distance for the path.
Returns
void