From 7473f9671eea6cfa32f84d94854334bde26ccda1 Mon Sep 17 00:00:00 2001 From: jasondaming Date: Fri, 8 Dec 2023 22:30:46 -0600 Subject: [PATCH] use # for python comments --- .../intro-and-chassis-speeds.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/source/docs/software/kinematics-and-odometry/intro-and-chassis-speeds.rst b/source/docs/software/kinematics-and-odometry/intro-and-chassis-speeds.rst index 856b53c25b..60383e91f8 100644 --- a/source/docs/software/kinematics-and-odometry/intro-and-chassis-speeds.rst +++ b/source/docs/software/kinematics-and-odometry/intro-and-chassis-speeds.rst @@ -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) @@ -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))