Changeset 15 in flair-src for trunk/lib/FlairSensorActuator/src/SimuGps.cpp
- Timestamp:
- 04/08/16 15:40:57 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/SimuGps.cpp
r3 r15 24 24 using namespace flair::core; 25 25 26 namespace flair 27 { 28 namespace sensor 29 { 26 namespace flair { 27 namespace sensor { 30 28 31 SimuGps::SimuGps(const FrameworkManager* parent,string name,Gps::NMEAFlags_t NMEAFlags,uint8_t priority) : Thread(parent,name,priority), Gps(parent,name,NMEAFlags) 32 { 29 SimuGps::SimuGps(const FrameworkManager *parent, string name, 30 Gps::NMEAFlags_t NMEAFlags, uint8_t priority) 31 : Thread(parent, name, priority), Gps(parent, name, NMEAFlags) {} 32 33 SimuGps::~SimuGps() { 34 SafeStop(); 35 Join(); 33 36 } 34 37 35 SimuGps::~SimuGps() 36 { 37 SafeStop(); 38 Join(); 38 void SimuGps::Run(void) { 39 char response[200] = {0}; 40 int size, result; 41 // double lat=0; 42 SetPeriodMS(500); 43 WarnUponSwitches(true); 44 45 while (!ToBeStopped()) { 46 WaitPeriod(); 47 position->SetCoordinates(49.402313, 2.795463, 0); 48 // lat+=.5; 49 } 50 51 WarnUponSwitches(false); 39 52 } 40 41 void SimuGps::Run(void)42 {43 char response[200] = {0};44 int size,result;45 //double lat=0;46 SetPeriodMS(500);47 WarnUponSwitches(true);48 49 while(!ToBeStopped())50 {51 WaitPeriod();52 position->SetCoordinates(49.402313, 2.795463,0);53 // lat+=.5;54 }55 56 57 WarnUponSwitches(false);58 }59 60 53 61 54 } // end namespace sensor
Note:
See TracChangeset
for help on using the changeset viewer.