Differences

This shows you the differences between two versions of the page.

Link to this comparison view

robot_move [2008/07/22 11:19]
hadrien
robot_move [2008/07/22 11:27] (current)
hadrien
Line 14: Line 14:
    ​virtual int rotate(int angle)=0; // angle in degree; positive value rotates CCW, negative value rotates CW    ​virtual int rotate(int angle)=0; // angle in degree; positive value rotates CCW, negative value rotates CW
    ​virtual int move(int distance)=0; ​ // distance in mm; positive value moves forward, negative value moves backward    ​virtual int move(int distance)=0; ​ // distance in mm; positive value moves forward, negative value moves backward
 +   ​virtual int getAngle()=0;​
 private: private:
    int currentAngle;​    int currentAngle;​
Line 26: Line 27:
 Class WheeledMove:​ RobotMove { Class WheeledMove:​ RobotMove {
    ​WheeledMove(ContServo&​ leftWheel, ContServo&​ rightWheel, int linear, int angular);    ​WheeledMove(ContServo&​ leftWheel, ContServo&​ rightWheel, int linear, int angular);
-   ​rotate(int angle); +   int rotate(int angle); 
-   ​move(int distance);+   int move(int distance); 
 +   int getAngle();
 private: private:
    ​ContServo&​ left;    ​ContServo&​ left;
 
robot_move.txt · Last modified: 2008/07/22 11:27 by hadrien
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS La rache Driven by DokuWiki