HoloLib
High-performance holonomic (X-Drive) control library for VEX V5
Loading...
Searching...
No Matches
pose.h File Reference
#include <cmath>

Go to the source code of this file.

Classes

struct  VelocityComponents
 Contains internal robot velocities. More...
 
struct  Pose
 Contains global coordinates and velocity. More...
 
struct  XDriveVoltages
 Holonomic target voltages for a 4-motor X-drive or mecanum base. More...
 

Functions

float getAngleError (float target, float current)
 Helper utility to calculate the shortest path between two angles.
 

Function Documentation

◆ getAngleError()

float getAngleError ( float  target,
float  current 
)
inline

Helper utility to calculate the shortest path between two angles.

Parameters
targetThe desired angle in degrees.
currentThe current angle in degrees.
Returns
float The minimal error difference [-180, 180].

Definition at line 37 of file pose.h.