| | |
| | | static int en = 0; |
| | | static int gcc = 0; |
| | | |
| | | if (gcc % 20 == 0) { |
| | | // AddExamFault(++en, &rtkTime); |
| | | if (gcc % 100 == 0) { |
| | | AddExamFault(++en, &rtkTime); |
| | | } |
| | | gcc++; |
| | | |
| | |
| | | str2float(&CurrRTKInfo.y, s->nmea_value[2].data, s->nmea_value[2].length); |
| | | str2float(&CurrRTKInfo.x, s->nmea_value[4].data, s->nmea_value[4].length); |
| | | |
| | | CurrRTKInfo.x = -12; |
| | | CurrRTKInfo.y = 27; |
| | | static double sbx = -12; |
| | | static double sby = 27; |
| | | |
| | | // CurrRTKInfo.x = sbx; |
| | | // CurrRTKInfo.y = sby; |
| | | |
| | | sbx += 0.01; |
| | | sby += 0.01; |
| | | |
| | | // const double by1 = 28.013; |
| | | // const double bx1 = -11.9669; |
| | |
| | | // CurrRTKInfo.heading = 60; |
| | | |
| | | static double deg = 0; |
| | | CurrRTKInfo.heading = deg; |
| | | |
| | | // CurrRTKInfo.heading = deg; |
| | | deg += 2.0; |
| | | if (deg >= 360) deg = 0; |
| | | |
| | | if (CurrRTKInfo.hh == hh && CurrRTKInfo.mm == mm && CurrRTKInfo.ss == ss && CurrRTKInfo.dss == dss) { |
| | | PlatformStatusChanged(RTK_UPDATE_EVT, (uint8_t *)&CurrRTKInfo, sizeof(CurrRTKInfo)); |