pub fn simulate_powertrain_race_aware(
config: MotorMppiConfig,
params: PowertrainParams,
lap: &RacingGateLap3D,
start: PowertrainState,
max_steps: usize,
target_laps: usize,
) -> RoboticsResult<PowertrainLapReport>Expand description
Drive the powertrain-aware MPPI controller through the real powertrain.
The controller rolls candidates out through PowertrainParams::step, so it
plans within the lag and battery-limited authority instead of assuming ideal
actuators. On a drained pack this conserves the authority the unaware
controller wastes against the ceiling.