A GPS disciplined clock
Dependencies: net lpc1768 crypto clock web log
web-this/nmea/web-nmea-html.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 <stdio.h> |
andrewboyson | 27:eb5728b9052b | 2 | |
andrewboyson | 27:eb5728b9052b | 3 | #include "http.h" |
andrewboyson | 59:d2d25c2265f8 | 4 | #include "web-nav-this.h" |
andrewboyson | 57:2d54e570de60 | 5 | #include "web-add.h" |
andrewboyson | 27:eb5728b9052b | 6 | |
andrewboyson | 55:a1bd0572c8b6 | 7 | void WebNmeaHtml() |
andrewboyson | 27:eb5728b9052b | 8 | { |
andrewboyson | 27:eb5728b9052b | 9 | HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL); |
andrewboyson | 57:2d54e570de60 | 10 | WebAddHeader("NMEA", "settings.css", "nmea.js"); |
andrewboyson | 57:2d54e570de60 | 11 | WebAddNav(NMEA_PAGE); |
andrewboyson | 57:2d54e570de60 | 12 | WebAddH1("NMEA"); |
andrewboyson | 81:a1de28caf11a | 13 | |
andrewboyson | 81:a1de28caf11a | 14 | WebAddInputButton("Reset GPS module", "Reset", "/nmea", "reset"); |
andrewboyson | 49:115a5e4fac0c | 15 | |
andrewboyson | 57:2d54e570de60 | 16 | WebAddH2("Position"); |
andrewboyson | 57:2d54e570de60 | 17 | WebAddAjaxLabelled("WGS", "ajax-position"); |
andrewboyson | 57:2d54e570de60 | 18 | WebAddAjaxLabelled("Satellite count", "ajax-sat-count"); |
andrewboyson | 57:2d54e570de60 | 19 | WebAddAjaxLabelled("Dilution of Precision", "ajax-dop"); |
andrewboyson | 27:eb5728b9052b | 20 | |
andrewboyson | 57:2d54e570de60 | 21 | WebAddH2("Height"); |
andrewboyson | 57:2d54e570de60 | 22 | WebAddAjaxLabelledSuffix("MSL above WGS", "ajax-msl-above-wgs", "m"); |
andrewboyson | 57:2d54e570de60 | 23 | WebAddAjaxLabelledSuffix("Sensor height above MSL", "ajax-hgt-above-msl", "m"); |
andrewboyson | 57:2d54e570de60 | 24 | WebAddAjaxInputSuffix ("Sensor height above ground", 2, "ajax-sensor-hgt", "sensorheight", "m"); |
andrewboyson | 57:2d54e570de60 | 25 | WebAddAjaxLabelledSuffix("Ground height above MSL", "ajax-gnd-above-msl", "m"); |
andrewboyson | 35:a535b65203a9 | 26 | |
andrewboyson | 57:2d54e570de60 | 27 | WebAddH2("Trace"); |
andrewboyson | 57:2d54e570de60 | 28 | WebAddAjaxInputToggle("Trace GPS" , "ajax-trace-gps" , "gpstrace" ); |
andrewboyson | 57:2d54e570de60 | 29 | WebAddAjaxInputToggle("Verbose GPS" , "ajax-trace-verbose", "gpsverbose" ); |
andrewboyson | 57:2d54e570de60 | 30 | WebAddAjaxInputToggle("Trace message", "ajax-trace-msg" , "nmeamsgtrace" ); |
andrewboyson | 57:2d54e570de60 | 31 | WebAddAjaxInputToggle("Trace command", "ajax-trace-cmd" , "nmeacmdtrace" ); |
andrewboyson | 27:eb5728b9052b | 32 | |
andrewboyson | 57:2d54e570de60 | 33 | WebAddH2("ZDA timing bins"); |
andrewboyson | 49:115a5e4fac0c | 34 | HttpAddText("<code id='ajax-buckets'></code>\r\n"); |
andrewboyson | 48:9f1ab7784067 | 35 | |
andrewboyson | 57:2d54e570de60 | 36 | WebAddEnd(); |
andrewboyson | 27:eb5728b9052b | 37 | } |