Project Paint / Mbed 2 deprecated arm_control

Dependencies:   mbed QEI biquadFilter

robot.h

Committer:
ronvbree
Date:
2016-11-02
Revision:
2:fc869e45e672
Child:
3:1f47375270c5

File content as of revision 2:fc869e45e672:

#include "arm.h"

class Robot {
    private:
        // Arms
        Arm upperArm;
        Arm lowerArm;
        // Roller position
        float x;
        float y;
        // Ticker
        Ticker ticker;
        // Safety button
        InterruptIn killButton;
        
        void doTick();
        
    public:
        Robot();
//        void setX(float x);
//        void setY(float y);
        // Move only on the x axis
        void moveX(float dx);
        // Move only on the y axis
        void moveY(float dy);
        // Set arm lengths
//        void setArms(float upper, float lower);
        // Set upper arm velocity
        void setUpperArmVelocity(float referenceVelocity);
        // Set lower arm velocity
        void setLowerArmVelocity(float referenceVelocity);
        // Safety shutdown
        void kill();

};