38 return std::remainder(target - current, 360.0f);
float getAngleError(float target, float current)
Helper utility to calculate the shortest path between two angles.
Contains global coordinates and velocity.
float theta
Global heading angle.
float x
Global X coordinate.
float y
Global Y coordinate.
VelocityComponents velocity
Current velocity components.
Contains internal robot velocities.
float w
Velocities in X, Y, and Rotational domains.
Holonomic target voltages for a 4-motor X-drive or mecanum base.
float br
Front-left, Front-right, Back-left, Back-right voltages.