MCPcopy Create free account
hub / github.com/botbotrobotics/BotBrain / angleDifference

Function angleDifference

frontend/src/utils/waypointProjection.ts:40–42  ·  view source on GitHub ↗
(target: number, current: number)

Source from the content-addressed store, hash-verified

38 * Returns value in [-PI, PI]
39 */
40export function angleDifference(target: number, current: number): number {
41 return normalizeAngle(target - current);
42}
43
44/**
45 * Project a waypoint to screen coordinates using bearing-based calculation

Callers 2

useSmoothedPoseFunction · 0.90
useSmoothedPoseDebugFunction · 0.90

Calls 1

normalizeAngleFunction · 0.70

Tested by

no test coverage detected