diff --git a/examples/FRC2022Shooter/main.py b/examples/FRC2022Shooter/main.py index a2cebe26..e8354ae4 100755 --- a/examples/FRC2022Shooter/main.py +++ b/examples/FRC2022Shooter/main.py @@ -86,8 +86,8 @@ def lerp(a, b, t): # Require initial launch velocity is below max # - # √{v_x² + v_y² + v_z²) <= vₘₐₓ - # v_x² + v_y² + v_z² <= vₘₐₓ² + # √{v_x² + v_y² + v_z²) ≤ vₘₐₓ + # v_x² + v_y² + v_z² ≤ vₘₐₓ² problem.subject_to( v_x[0] ** 2 + v_y[0] ** 2 + v_z[0] ** 2 <= max_launch_velocity**2 ) diff --git a/examples/FRC2022Shooter/src/Main.cpp b/examples/FRC2022Shooter/src/Main.cpp index 38351102..abc896dd 100644 --- a/examples/FRC2022Shooter/src/Main.cpp +++ b/examples/FRC2022Shooter/src/Main.cpp @@ -84,8 +84,8 @@ int main() { // Require initial launch velocity is below max // - // √{v_x² + v_y² + v_z²) <= vₘₐₓ - // v_x² + v_y² + v_z² <= vₘₐₓ² + // √{v_x² + v_y² + v_z²) ≤ vₘₐₓ + // v_x² + v_y² + v_z² ≤ vₘₐₓ² problem.SubjectTo(v_x(0) * v_x(0) + v_y(0) * v_y(0) + v_z(0) * v_z(0) <= max_launch_velocity * max_launch_velocity);