Skip to content

Commit

Permalink
use # for python comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jasondaming committed Dec 9, 2023
1 parent 18a9218 commit 7473f96
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ The constructor for the ``ChassisSpeeds`` object is very straightforward, accept
import math
from wpimath.kinematics import ChassisSpeeds
// The robot is moving at 3 meters per second forward, 2 meters
// per second to the right, and rotating at half a rotation per
// second counterclockwise.
# The robot is moving at 3 meters per second forward, 2 meters
# per second to the right, and rotating at half a rotation per
# second counterclockwise.
speeds = ChassisSpeeds(3.0, -2.0, math.pi)
Expand Down Expand Up @@ -85,11 +85,11 @@ The static ``ChassisSpeeds.fromFieldRelativeSpeeds`` (Java / Python) / ``Chassis
from wpimath.kinematics import ChassisSpeeds
from wpimath.geometry import Rotation2d
// The desired field relative speed here is 2 meters per second
// toward the opponent's alliance station wall, and 2 meters per
// second toward the left field boundary. The desired rotation
// is a quarter of a rotation per second counterclockwise. The current
// robot angle is 45 degrees.
# The desired field relative speed here is 2 meters per second
# toward the opponent's alliance station wall, and 2 meters per
# second toward the left field boundary. The desired rotation
# is a quarter of a rotation per second counterclockwise. The current
# robot angle is 45 degrees.
speeds = ChassisSpeeds.fromFieldRelativeSpeeds(
2.0, 2.0, math.pi / 2.0, Rotation2d.fromDegrees(45.0))
Expand Down

0 comments on commit 7473f96

Please sign in to comment.