Skip to content

Commit

Permalink
Use Unicode in FRC 2022 shooter example
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul committed Jun 28, 2024
1 parent c19bf61 commit d703476
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/FRC2022Shooter/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
4 changes: 2 additions & 2 deletions examples/FRC2022Shooter/src/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit d703476

Please sign in to comment.