Browse Source

Reset standing height and hip offset to stock defaults

Standing height was 0.72m (should be -1.0 = planner default 0.789m).
Hip pitch offset was 3.0 deg (should be 0.0 = no post-NN bias).
Both were experimental overrides that didn't fix knee straightening
and may have been causing subtle planner input mismatches.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
main
Joe DiPrima 4 weeks ago
parent
commit
9461ca8ecd
  1. 6
      gear_sonic_deploy/src/g1/g1_deploy_onnx_ref/include/input_interface/gamepad_manager.hpp

6
gear_sonic_deploy/src/g1/g1_deploy_onnx_ref/include/input_interface/gamepad_manager.hpp

@ -55,8 +55,8 @@ inline std::atomic<double> g_imu_pitch_offset_deg{0.0};
inline std::atomic<double> g_waist_pitch_offset_deg{0.0};
/// Runtime-adjustable standing height (meters). Keys 5/6 to adjust via tmux.
/// Lowered from planner default 0.789m to add knee bend.
inline std::atomic<double> g_standing_height_m{0.72};
/// Default -1.0 = let planner use its trained default (0.789m).
inline std::atomic<double> g_standing_height_m{-1.0};
/// Runtime-adjustable knee offset (degrees). Keys 3/4 to adjust via tmux.
/// Positive = more bent knees = lower stance. Applied to both knees equally.
@ -65,7 +65,7 @@ inline std::atomic<double> g_knee_offset_deg{0.0};
/// Runtime-adjustable hip pitch offset (degrees). Keys 1/2 to adjust via tmux.
/// Positive = more hip flexion = legs forward = counteracts backward lean.
/// Applied post-NN to motor commands only (NN is blind to this adjustment).
inline std::atomic<double> g_hip_pitch_offset_deg{3.0};
inline std::atomic<double> g_hip_pitch_offset_deg{0.0};
/// Runtime-adjustable ankle pitch offset (degrees). Keys q/w to adjust via tmux.
/// Positive = more dorsiflexion correction (toes up). Applied to both ankles equally.

Loading…
Cancel
Save