| aMo_Init | Index |
Definition:
| void aMo_Init( | ); |
Return Value:
Description:
This routine initializes two modified servos for a simple 2-wheel differential drive robot. Servo settings must be included in a copy of the aMo_Def.tea file that comes with the system files in the BrainStem software. This file is a usable starting point, but the servos may require fine-tuning with the GP program. The servos should be configured so that an absolute speed of 60 will stop each servo, an absolute speed of 0 will make each servo go backward at full speed, and an absolute speed of 120 will make each servo go forward at full speed. The aMo_Def.tea file should be copied, modified, and renamed for a particular robot.
Example:
#include <aMyRobot.tea>
#include <aMo.tea>
aMo_Init();
This would configure two modified servos on a 2-wheel drive robot using the user-defined data in the aMyRobot.tea file. The "aMyRobot.tea" file is a copy of the "aMo_Def.tea" file which contains specific servo parameters for the robot.
Related: