Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Update twodmotionprofiling.md #438

Merged
merged 5 commits into from Mar 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 10 additions & 2 deletions docs/tutorials/concepts/twodmotionprofiling.md
Expand Up @@ -50,7 +50,11 @@ std::shared_ptr<ChassisController> myChassis =

std::shared_ptr<AsyncMotionProfileController> profileController =
AsyncMotionProfileControllerBuilder()
.withLimits({1.0, 2.0, 10.0})
.withLimits({
1.0, // Maximum linear velocity of the Chassis in m/s
2.0, // Maximum linear acceleration of the Chassis in m/s/s
10.0 // Maximum linear jerk of the Chassis in m/s/s/s
})
.withOutput(myChassis)
.buildMotionProfileController();
```
Expand Down Expand Up @@ -108,7 +112,11 @@ std::shared_ptr<ChassisController> myChassis =

std::shared_ptr<AsyncMotionProfileController> profileController =
AsyncMotionProfileControllerBuilder()
.withLimits({1.0, 2.0, 10.0})
.withLimits({
1.0, // Maximum linear velocity of the Chassis in m/s
2.0, // Maximum linear acceleration of the Chassis in m/s/s
10.0 // Maximum linear jerk of the Chassis in m/s/s/s
})
.withOutput(myChassis)
.buildMotionProfileController();

Expand Down