Changeset 42 in flair-src for trunk/lib/FlairSensorActuator/src
- Timestamp:
- Jul 5, 2016, 8:50:58 AM (8 years ago)
- Location:
- trunk/lib/FlairSensorActuator/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/Gps.cpp
r15 r42 216 216 result = nmea_parse(&parser, frame, frame_size, &info); 217 217 if (result != 1) { 218 Warn("unrecognized nmea sentence\n"); 219 Warn("%s\n", frame); 218 Warn("unrecognized nmea sentence: %s\n",frame); 220 219 } 221 220 -
trunk/lib/FlairSensorActuator/src/Mb800.cpp
r41 r42 53 53 Thread::Err("erreur Write (%s)\n", strerror(-written)); 54 54 } 55 /* 55 56 56 { 57 57 char to_send[] = "$PASHS,CPD,AFP,95.0\r\n"; … … 68 68 } 69 69 } 70 */ 70 71 71 if ((NMEAFlags & GGA) != 0) { 72 72 char to_send[] = "$PASHS,NME,GGA,A,ON,0.05\r\n"; … … 99 99 100 100 while (!ToBeStopped()) { 101 //Printf("loop\n");102 101 SleepMS(10); 103 size = 0; /*102 size = 0; 104 103 while (!ToBeStopped()) { 105 104 ssize_t read = serialport->Read(&response[size], 1); … … 111 110 break; 112 111 size++; 113 } */112 } 114 113 size++; 115 //parseFrame(response, size);114 parseFrame(response, size); 116 115 } 117 116 /** fin running loop **/ … … 122 121 char data = 0; 123 122 ssize_t read = 0; 124 Printf("sync\n"); 123 125 124 // attente fin trame 126 125 while (data != 0x0a && !ToBeStopped()) { 127 126 read = serialport->Read(&data, 1); 128 127 SleepMS(10); 129 Printf("%i %x\n",read,data); 128 130 129 if (read < 0) { 131 130 Thread::Err("erreur Read (%s)\n", strerror(-read)); -
trunk/lib/FlairSensorActuator/src/TargetController.cpp
r38 r42 39 39 TabWidget* tab=new TabWidget(main_tab->NewRow(),name); 40 40 setup_tab=new Tab(tab,"Reglages"); 41 SetPeriodMS(20);; //50Hz42 41 } 43 42 … … 115 114 116 115 void TargetController::Run() { 116 SetPeriodMS(20);; //50Hz 117 117 118 Message *message; 118 119
Note:
See TracChangeset
for help on using the changeset viewer.