From 1c91819689e57a412037b6d9467a9f8cdee55ba1 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Tue, 2 Dec 2025 16:57:21 -0600 Subject: [PATCH] Update tinygrad_modeld.py --- frogpilot/tinygrad_modeld/tinygrad_modeld.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frogpilot/tinygrad_modeld/tinygrad_modeld.py b/frogpilot/tinygrad_modeld/tinygrad_modeld.py index 8bef27a11..7ee22eaea 100755 --- a/frogpilot/tinygrad_modeld/tinygrad_modeld.py +++ b/frogpilot/tinygrad_modeld/tinygrad_modeld.py @@ -46,6 +46,7 @@ def get_action_from_model(model_output: dict[str, np.ndarray], prev_action: log. plan = model_output['plan'][0] if 'planplus' in model_output: plan = plan + RECOVERY_POWER*model_output['planplus'][0] + cloudlog.error(f"planplus applied: shape {model_output['planplus'].shape}, RECOVERY_POWER {RECOVERY_POWER}") desired_accel, should_stop = get_accel_from_plan_tomb_raider(plan[:,Plan.VELOCITY][:,0], plan[:,Plan.ACCELERATION][:,0], ModelConstants.T_IDXS,