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.
Sophia Class Reference
Interface to control a Sophia robot. More...
#include <Sophia.h>
Public Member Functions | |
| void | move (float speed, int direction) |
| Set the direction of Sophia and the speed of the motor. | |
| void | turn (float speed, int direction) |
| Sets the side to turn and the speed of the motor. | |
| void | spin (float speed, int direction) |
| Sets the side to spin and the speed of the motor. | |
Detailed Description
Interface to control a Sophia robot.
Definition at line 13 of file Sophia.h.
Member Function Documentation
| void move | ( | float | speed, |
| int | direction | ||
| ) |
Set the direction of Sophia and the speed of the motor.
- Parameters:
-
speed The speed of the motor as a normalised value between -1.0 and 1.0 direction The desired direction to move the robot, FWD or REV
Definition at line 8 of file Sophia.cpp.
| void spin | ( | float | speed, |
| int | direction | ||
| ) |
Sets the side to spin and the speed of the motor.
- Parameters:
-
speed The speed of the motor as a normalised value between -1.0 and 1.0 direction The desired direction to move the robot, LEFT or RIGHT.
Definition at line 29 of file Sophia.cpp.
| void turn | ( | float | speed, |
| int | direction | ||
| ) |
Sets the side to turn and the speed of the motor.
- Parameters:
-
speed The speed of the motor as a normalised value between -1.0 and 1.0 direction The desired direction to move the robot, LEFT or RIGHT.
Definition at line 19 of file Sophia.cpp.
Generated on Tue Jul 12 2022 22:55:22 by
1.7.2