Skip to content

Commit

Permalink
DOCS-2951: Make updates from QA to component code samples (#4411)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguequierre authored Oct 9, 2024
1 parent 2356447 commit 177ba5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/motor/motor.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ var API = resource.APINamespaceRDK.WithComponentType(SubtypeName)
// SetRPM example:
//
// // Set the motor's RPM to 50
// myMotorComponent.SetRPM(context.Background(), 50)
// myMotorComponent.SetRPM(context.Background(), 50, nil)
//
// ResetZeroPosition example:
//
Expand Down
8 changes: 4 additions & 4 deletions components/movementsensor/movementsensor.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func Named(name string) resource.Name {
// LinearAcceleration example:
//
// // Get the current linear acceleration of the movement sensor.
// linVel, err := myMovementSensor.LinearVelocity(context.Background(), nil)
// linAcc, err := myMovementSensor.LinearAcceleration(context.Background(), nil)
//
// CompassHeading example:
//
Expand All @@ -107,9 +107,9 @@ func Named(name string) resource.Name {
// orientation := sensorOrientation.OrientationVectorDegrees()
//
// // Print out the orientation vector.
// logger.Info("The x component of the orientation vector: ", orientation.0X)
// logger.Info("The y component of the orientation vector: ", orientation.0Y)
// logger.Info("The z component of the orientation vector: ", orientation.0Z)
// logger.Info("The x component of the orientation vector: ", orientation.OX)
// logger.Info("The y component of the orientation vector: ", orientation.OY)
// logger.Info("The z component of the orientation vector: ", orientation.OZ)
// logger.Info("The number of degrees that the movement sensor is rotated about the vector: ", orientation.Theta)
//
// Properties example:
Expand Down

0 comments on commit 177ba5d

Please sign in to comment.