Utilities classes for the Zumo Robot

Dependents:   ZumoRobotBluetoothControlled Fsl_Zumo

This library represents some useful code for controlling your Zumo Robot.

ZumoRobotManager.cpp

Committer:
catalincraciun7
Date:
2014-11-02
Revision:
2:036da44b023e
Parent:
0:8ebbd2bd34f5
Child:
3:b1fde0759c94

File content as of revision 2:036da44b023e:

// Craciun Catalin
//  ZumoRobotManager.cpp
//   © 2014 Catalin Craciun

#ifndef ZumoRobotManagerCpp
#define ZumoRobotManagerCpp

#include "ZumoRobotManager.h"
#include "mbed.h"

Serial pc (USBTX, USBRX);

ZumoRobotManager::ZumoRobotManager() {
    
    // Initialising
    this -> velocityX = 0;
    this -> velocityY = 0;
}

ZumoRobotManager::~ZumoRobotManager() {
    
    // Deinitialising
    
}

float ZumoRobotManager::getVelocityX() {

    return this -> velocityX;    
}

float ZumoRobotManager::getVelocityY() {

    return this -> velocityY;
}

void ZumoRobotManager::setVelocityX(float newValue) {
  
    this -> velocityX = newValue;
}

void ZumoRobotManager::setVelocityY(float newValue) {
 
    this -> velocityY = newValue;
}

#endif // ZumoRobotManagerCpp