A GPS disciplined clock
Dependencies: net lpc1768 crypto clock web log
web-this/nmea/web-nmea-query.c@97:af023452967f, 2020-05-06 (annotated)
- Committer:
- andrewboyson
- Date:
- Wed May 06 18:40:02 2020 +0000
- Revision:
- 97:af023452967f
- Parent:
- 81:a1de28caf11a
Changed PPS timeout to 8000ms (it was 1000ms)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 27:eb5728b9052b | 1 | #include "http.h" |
andrewboyson | 27:eb5728b9052b | 2 | #include "settings.h" |
andrewboyson | 81:a1de28caf11a | 3 | #include "gps.h" |
andrewboyson | 27:eb5728b9052b | 4 | |
andrewboyson | 55:a1bd0572c8b6 | 5 | void WebNmeaQuery(char* pQuery) |
andrewboyson | 27:eb5728b9052b | 6 | { |
andrewboyson | 27:eb5728b9052b | 7 | while (pQuery) |
andrewboyson | 27:eb5728b9052b | 8 | { |
andrewboyson | 27:eb5728b9052b | 9 | char* pName; |
andrewboyson | 27:eb5728b9052b | 10 | char* pValue; |
andrewboyson | 29:4fe0f237fd61 | 11 | pQuery = HttpQuerySplit(pQuery, &pName, &pValue); |
andrewboyson | 27:eb5728b9052b | 12 | |
andrewboyson | 43:bf39371b4576 | 13 | int value = HttpQueryValueAsInt(pValue); |
andrewboyson | 81:a1de28caf11a | 14 | |
andrewboyson | 81:a1de28caf11a | 15 | if (HttpSameStr(pName, "reset" )) GpsInit(); |
andrewboyson | 35:a535b65203a9 | 16 | if (HttpSameStr(pName, "sensorheight")) SetSensorHeight(value); |
andrewboyson | 35:a535b65203a9 | 17 | if (HttpSameStr(pName, "nmeamsgtrace")) ChgNmeaMsgTrace(); |
andrewboyson | 35:a535b65203a9 | 18 | if (HttpSameStr(pName, "nmeacmdtrace")) ChgNmeaCmdTrace(); |
andrewboyson | 35:a535b65203a9 | 19 | if (HttpSameStr(pName, "gpstrace")) ChgGpsTrace(); |
andrewboyson | 36:2983e45eeb49 | 20 | if (HttpSameStr(pName, "gpsverbose")) ChgGpsVerbose(); |
andrewboyson | 27:eb5728b9052b | 21 | } |
andrewboyson | 27:eb5728b9052b | 22 | } |