Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Unicode in FRC 2022 shooter example #577

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading