2018 revision to classic DataBus AVC code.

Dependencies:   LSM303DLM Servo SerialGraphicLCD L3G4200D IncrementalEncoder SimpleShell

Updater.h

Committer:
shimniok
Date:
2018-12-12
Revision:
13:5566df1250f1
Parent:
12:3cd91e150d9c
Child:
14:1dd83e626153

File content as of revision 13:5566df1250f1:

#ifndef __UPDATER_H
#define __UPDATER_H

#include "mbed.h"
#include "L3G4200D.h"

class Updater: private mbed::NonCopyable<Updater> {
public:
    void start(int interval_ms);
    static Updater *instance();
    void gyro(int g[3], float& dt);
      
private:
    Updater() {} // parameterize
    Timer *t;
    void update();
    int _gyro[3];
    float _dt;
    int thisTime;
    int lastTime;
};

#endif