2021-04-10 14:22:41 +00:00
|
|
|
#ifndef GLOBALVAR_H
|
|
|
|
#define GLOBALVAR_H
|
|
|
|
|
|
|
|
#include "singletone.h"
|
|
|
|
#include "serialcontroller.h"
|
|
|
|
|
|
|
|
#define PI 3.1415926535898
|
|
|
|
|
|
|
|
class globalVarManager
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
globalVarManager();
|
|
|
|
SerialController *GetSerailController();
|
|
|
|
void SetSerialController(SerialController *);
|
2021-04-24 17:21:31 +00:00
|
|
|
|
2021-04-10 14:22:41 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
SerialController *mSerial;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef Singletone<globalVarManager> GlobalVarManager;
|
|
|
|
#endif // GLOBALVAR_H
|