CMenu - GetInput() - gets an input from the gameboy - returns type char CDiffRobot1 - GetAnalog(int x) - gets the analog values from xport - input: integers 0 - 7, for the analog ports - returns a value (we use type short) - GetXir(int x) - gets the xport ir sensor values - input: integers 0 - 7, for the digital ports - returns a value (we use type long) - GetCurrent(int x) - gets the current sent to the motor to calculate relative torque - input: integers 0 - 3, for the 4 motor ports - returns a value - Move(unsigned char w, AxisPosition x, int y, unsigned int z) - moves the robot either forward/backward or rotate - unsigned char w: Axis of motion (either TRANS_AXIS (0) or ROTATE_AXIS (1)) - AxisPosition x: Final Position/angle to end up at. - int y: Velocity of movement - unsigned int z: acceleration - Execute() - executes motion commands - need this command before any motion is carried out CHumrRobot1 - SetFrisbee(bool a) - sets the axis of the robot - input true: axis is set so orientation of robot (rotation-wise) doesnt matter - input false: axis changes as robot's orientation changes (always relative to robot) - GetAnalog(int x) - gets the analog values from xport - input: integers 0 - 7, for the analog ports - returns a value (we use type short) - GetXir(int x) - gets the xport ir sensor values - input: integers 0 - 7, for the digital ports - returns a value (we use type long) - GetCurrent(int x) - gets the current sent to the motor to calculate relative torque - input: integers 0 - 3, for the 4 motor ports - returns a value - GetPosition(int x) - gets current position of the robot based on telemetry - input: integers 0 - 2 for the axis - Move(unsigned char w, AxisPosition x, int y, unsigned int z) - moves the robot either forward/backward or rotate - unsigned char w: Axis of motion (either X_AXIS (0), Y_AXIS (1), ROTATE_AXIS (2)) - AxisPosition x: Final Position/angle to end up at. - int y: Velocity of movement - unsigned int z: acceleration - Stop(int x) - stops the robot's movement - input: integers 0 - 2 for the axis to stop motion in - Execute() - executes motion commands - need this command before any motion is carried out