Skip to content

Commit 1e3c600

Browse files
committed
Fix documentation's example
1 parent 42a42ac commit 1e3c600

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/car/heading/HeadingCar.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ class HeadingCar : virtual public SimpleCar
1717
*
1818
* **Example:**
1919
* \code
20-
* const int GYROSCOPE_OFFSET = 37;
2120
*
2221
* BrushedMotor leftMotor(smartcarlib::pins::v2::leftMotorPins);
2322
* BrushedMotor rightMotor(smartcarlib::pins::v2::rightMotorPins);
2423
* DifferentialControl control(leftMotor, rightMotor);
2524
*
26-
* GY50 gyroscope(GYROSCOPE_OFFSET);
25+
* ArduinoRuntime arduinoRuntime;
26+
* const int GYROSCOPE_OFFSET = 37;
27+
* GY50 gyroscope(arduinoRuntime, GYROSCOPE_OFFSET);
2728
* \endcode
2829
*/
2930
HeadingCar(Control& control, HeadingSensor& headingSensor);

0 commit comments

Comments
 (0)