Janus Bo Andersen / Mbed 2 deprecated m3pi_LineFollower

Dependencies:   mbed m3pi t2_m3pi

Fork of m3pi_LineFollower_PID by Chris Styles

trial.txt

Committer:
janusboandersen
Date:
2018-11-30
Revision:
13:cfa1c36a58bc

File content as of revision 13:cfa1c36a58bc:

//instantiate an m3pi object
//m3pi m3pi;


//Mimic mbed functions
/*void wait(float seconds) {
  //do nothing
}
*/

/*
enum pinNums {
  p13, p14, p15, p16, p17, p18, p19, p20, p21, LED1, LED2, LED3, LED4
};
*/

/*
class DigitalOut {
public:
  DigitalOut(pinNums pin) {
  }

  void operator=(int val) {
    value = val;
  }

  operator int() {
    return value;
  }

private:
  int value;
};

class Timer {
public:
  Timer(void) {
  }
  void start(void) {
  }
  void stop(void) {
  }
};
*/

//delete this class when it is possible to inherit from the real m3pi class
//this is only a dummy interface while programming in eclipse
/*
class m3pi {
public:

  //constructor
  m3pi() {
    std::cout << "m3pi" << std::endl;
  }

  //get battery voltage
  float battery(void) {
    return 4.6;
  }

  //clear the display
  void cls() {
    std::cout << "Cleared display" << std::endl;
  }

  //locate the cursor on the display
  void locate(unsigned int column, unsigned int row) {
  }

  void printf(std::string text) {
    std::cout << text << std::endl;
  }

  void sensor_auto_calibrate(void) {

  }

};
*/