API for gathering track information and handling car setups. More...

Topics | |
| Robot Telemetry API | |
| Legacy telemetry wrappers declared in robottools.h. | |
| Robot Track Tools API | |
| API to gather information about the track and the cars state relative to the track. | |
| Robot Setup Tools API | |
| API to load and store car setups in a unified way, and to support setup changes during pit stops. | |
Macros | |
| #define | RELAXATION2(target, prev, rate) |
| Blend a target with the previous unfiltered input. | |
| #define | RELAXATION(target, prev, rate) |
| Smooth a target using the previous filtered result. | |
API for gathering track information and handling car setups.
Include robottools.h.
| #define RELAXATION | ( | target, | |
| prev, | |||
| rate ) |
Smooth a target using the previous filtered result.
Assigns target = prev + (rate/100) * (target-prev), then copies the result to prev. Initialize prev before use. Use distinct assignable variables without side effects; macro arguments can be evaluated more than once.
| [in,out] | target | New input on entry, filtered result on exit. |
| [in,out] | prev | Previous filtered result; receives the new result. |
| [in] | rate | Percentage weight of the new input, normally 0 through 100; not clamped and independent of the simulation time step. |
Definition at line 57 of file robottools.h.
| #define RELAXATION2 | ( | target, | |
| prev, | |||
| rate ) |
Blend a target with the previous unfiltered input.
Assigns target = prev + (rate/100) * (target-prev), then stores the original target in prev. Use distinct assignable variables, without side effects.
| [in,out] | target | New input on entry, blended result on exit. |
| [in,out] | prev | Previous unfiltered input; receives the original target. |
| [in] | rate | Percentage weight of the new input, normally 0 through 100; not clamped and independent of the simulation time step. |
Definition at line 39 of file robottools.h.