Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed mbed-rtos Motor LSM9DS1_Library_cal X_NUCLEO_53L0A1
RobotController.cpp@5:77c6821ae418, 2019-04-14 (annotated)
- Committer:
- rpatelpj
- Date:
- Sun Apr 14 03:23:36 2019 +0000
- Revision:
- 5:77c6821ae418
- Child:
- 8:bfa4bf23522c
Setup empty methods for RobotController
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rpatelpj | 5:77c6821ae418 | 1 | #include "RobotController.h" |
rpatelpj | 5:77c6821ae418 | 2 | |
rpatelpj | 5:77c6821ae418 | 3 | RobotController::RobotController(PinName leftWheelPwm, PinName leftWheelFwd, |
rpatelpj | 5:77c6821ae418 | 4 | PinName leftWheelRev, PinName rightWheelPwm, PinName rightWheelFwd, |
rpatelpj | 5:77c6821ae418 | 5 | PinName rightWheelRev, PinName leftEncoderIn, PinName rightEncoderIn) : |
rpatelpj | 5:77c6821ae418 | 6 | leftWheel(leftWheelPwm, leftWheelFwd, leftWheelRev), |
rpatelpj | 5:77c6821ae418 | 7 | rightWheel(rightWheelPwm, rightWheelFwd, rightWheelRev), |
rpatelpj | 5:77c6821ae418 | 8 | leftEncoder(leftEncoderIn), rightEncoder(rightEncoderIn) { |
rpatelpj | 5:77c6821ae418 | 9 | } |
rpatelpj | 5:77c6821ae418 | 10 | |
rpatelpj | 5:77c6821ae418 | 11 | float* RobotController::obstacleDetection() { |
rpatelpj | 5:77c6821ae418 | 12 | |
rpatelpj | 5:77c6821ae418 | 13 | } |
rpatelpj | 5:77c6821ae418 | 14 | |
rpatelpj | 5:77c6821ae418 | 15 | void RobotController::followTrajectory(float* trajectory) { |
rpatelpj | 5:77c6821ae418 | 16 | |
rpatelpj | 5:77c6821ae418 | 17 | } |
rpatelpj | 5:77c6821ae418 | 18 | |
rpatelpj | 5:77c6821ae418 | 19 | void RobotController::toOrigin(float* trajectory) { |
rpatelpj | 5:77c6821ae418 | 20 | |
rpatelpj | 5:77c6821ae418 | 21 | } |