@@ -42,7 +42,7 @@ class V5DistanceSensor : public DistanceSensor {
4242 * @b Example:
4343 * @code {.cpp}
4444 * void initialize() {
45- * lemlib::V5DistanceSensor distance = lemlib::V5RDistanceSensor ::from_pros_dist(pros::Distance(1));
45+ * lemlib::V5DistanceSensor distance = lemlib::V5DistanceSensor ::from_pros_dist(pros::Distance(1));
4646 * }
4747 * @endcode
4848 */
@@ -56,7 +56,7 @@ class V5DistanceSensor : public DistanceSensor {
5656 * @b Example:
5757 * @code {.cpp}
5858 * void initialize() {
59- * lemlib::V5DistanceSensor distance = pros::Distance (1);
59+ * lemlib::V5DistanceSensor distance = lemlib::V5DistanceSensor (1);
6060 * const int result = distance.isConnected();
6161 * if (result == 1) {
6262 * std::cout << "Distance sensor is connected!" << std::endl;
@@ -83,7 +83,7 @@ class V5DistanceSensor : public DistanceSensor {
8383 * @b Example:
8484 * @code {.cpp}
8585 * void initialize() {
86- * lemlib::V5DistanceSensor distanceSensor = pros::Distance (1);
86+ * lemlib::V5DistanceSensor distanceSensor = lemlib::V5DistanceSensor (1);
8787 * const Length distance = distanceSensor.getDistance();
8888 * if (angle == INFINITY) {
8989 * std::cout << "Error getting distance!" << std::endl;
@@ -107,11 +107,11 @@ class V5DistanceSensor : public DistanceSensor {
107107 * @b Example:
108108 * @code {.cpp}
109109 * void initialize() {
110- * DistanceSensor* distanceSensor;
110+ * lemlib::V5DistanceSensor distanceSensor(1) ;
111111 * if (distanceSensor->setOffset(1_in) == 0) {
112112 * std::cout << "Offset set!" << std::endl;
113113 * // With an object touching the surface of the distance sensor
114- * std::cout < "Offset distance: " << distanceSensor->getDistance().convert(in) << std::endl; // outputs 1 inch
114+ * std::cout << "Offset distance: " << distanceSensor->getDistance().convert(in) << std::endl; // outputs 1 inch
115115 * } else {
116116 * std::cout << "Error setting offset!" << std::endl;
117117 * }
0 commit comments