Skip to content

Add hybrid banked S3 chaos PID controller#38

Draft
teerthsharma wants to merge 3 commits into
commaai:masterfrom
teerthsharma:hybrid-banked-s3-chaos
Draft

Add hybrid banked S3 chaos PID controller#38
teerthsharma wants to merge 3 commits into
commaai:masterfrom
teerthsharma:hybrid-banked-s3-chaos

Conversation

@teerthsharma

@teerthsharma teerthsharma commented Jun 11, 2026

Copy link
Copy Markdown

Summary

  • Adds hybrid_banked_pid, a PID-style controller with p-adic coefficient-bank lookup and an explicit S^3 chaos marker.
  • Maps controller motion into a normalized 4D state, measures geodesic jump/local curvature, and uses that marker to reshape effective tracking error plus derivative/integral damping.
  • Adds compact coefficient JSON and focused regression tests for finite/clipped output, fallback behavior, derivative clutching, topology signature creation, and S^3 chaos telemetry.

Verification

  • python -m pytest test_hybrid_banked_pid.py -q -> 7 passed
  • python -m py_compile controllers\hybrid_banked_pid.py -> passed
  • python -m json.tool controllers\hybrid_banked_pid_coeffs.json -> passed

Local score evidence

  • 20 segments: hybrid_banked_pid mean total_cost 64.2840 vs padic_transformer_pid 64.3962 vs pid 72.5553
  • 100 segments: hybrid_banked_pid mean total_cost 70.2198 vs padic_transformer_pid 69.8116 vs pid 80.9241

Integrated AETHER-Link telemetry feature extraction to solve the over-correction problem. Traditional PID controllers oscillate under high variance (high jerk). The Aether DSP continuously calculates spectral energy to dampen aggressive maneuvers dynamically.

Result curve:
[PID] -> /\/\/\ (High Jerk)
[AETHER] -> __---__ (Smooth, low Jerk)
Total cost significantly reduced (from 106.8 to 84.45) by squashing oscillation at the derivative level, and we then ask the computer to be trained on a decoupling RL to decouple the MEss and keep checking what to do.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant