LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
light::PathEvent Struct Reference

Mid-path action fired once when the trajectory passes its resolved time. More...

#include <ramsete.hpp>

Public Attributes

int atWaypoint = 0
 Index of the waypoint to fire on.
 
std::function< void()> action
 Callback invoked when the trigger is reached.
 

Detailed Description

Mid-path action fired once when the trajectory passes its resolved time.

atWaypoint is zero-based; for jerryio CSVs it indexes the heading-bearing lines, falling back to raw line index when no heading columns exist. Callback runs on the control thread — slow callbacks delay the next tick.

Definition at line 29 of file ramsete.hpp.

Member Data Documentation

◆ action

std::function<void()> light::PathEvent::action

Callback invoked when the trigger is reached.

Definition at line 31 of file ramsete.hpp.

◆ atWaypoint

int light::PathEvent::atWaypoint = 0

Index of the waypoint to fire on.

Definition at line 30 of file ramsete.hpp.


The documentation for this struct was generated from the following file: