-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbasestation.cpp
More file actions
62 lines (46 loc) · 1.35 KB
/
basestation.cpp
File metadata and controls
62 lines (46 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#include "basestation.h"
CBaseStation::CBaseStation(){
CMsg m;
m.set(_PIN,0);
_pins.addpin(m);
m.set(_PIN,2);
_pins.addpin(m);
//addSystem(&_test);
//addSystem(&_pins);
addSystem(&_keyboard);
addSystem(&_radio);
addSystem(&_msgpump);
addSystem(&_manager);
addSystem(&_cloud);
//addSystem(&_tbeamgps);
//_tbeamgps._m.set(_SAVEMAPTOCLOUD,1);
addSystem(&_scheduler);
_scheduler.schedule(_MANAGER,"GETDATA", _GPS,30000);
_scheduler.schedule(_RADIO,"STATS", std::string(_RADIO)+std::string("_STATS"),60000);
//addSystem(&_phone);
// addSystem(&_ir_X1);
// _ir_X1.config(IRADDRESS);
//addSystem(&_motorX);
//addSystem(&_IMUI2C);
_IMUI2C.name("IMUI");
_IMUI2C.config(IMUADDRESS1,&Wire);
//_motorX.Mode(_LOCK);
//addSystem(&_pincontroller);
//addSystem(&_magX);
//addSystem(&_magnetorquer);
/*
_radio.setACK(false);
_radio.name("RADIO");
_radio.setTransmitter(true);
_ir_X1.name(_IRX1);
_tempX1.name(_TEMPX1);
_motorX.name(_MOTORX);
_magX.name(_MAGX);
_motorX.config(MOTOR_SPEED,MOTOR_FG,MOTOR_DIR);
_motorX.config(2,14,13);
*/
}
void CBaseStation::callCustomFunctions(CMsg &msg){
writeconsoleln("void CBaseStation::callCustomFunctions(CMsg &msg)");
CStateObj::callCustomFunctions(msg);
}