A GPS disciplined clock

Dependencies:   net lpc1768 crypto clock web log

Committer:
andrewboyson
Date:
Wed May 01 10:14:26 2019 +0000
Revision:
59:d2d25c2265f8
Parent:
web-derived/nmea/web-nmea-html.c@58:3f3e000151cc
Child:
60:7cab896b0fd4
Updated web library

Who changed what in which revision?

UserRevisionLine numberNew 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 49:115a5e4fac0c 13
andrewboyson 57:2d54e570de60 14 WebAddH2("Position");
andrewboyson 57:2d54e570de60 15 WebAddAjaxLabelled("WGS", "ajax-position");
andrewboyson 57:2d54e570de60 16 WebAddAjaxLabelled("Satellite count", "ajax-sat-count");
andrewboyson 57:2d54e570de60 17 WebAddAjaxLabelled("Dilution of Precision", "ajax-dop");
andrewboyson 27:eb5728b9052b 18
andrewboyson 57:2d54e570de60 19 WebAddH2("Height");
andrewboyson 57:2d54e570de60 20 WebAddAjaxLabelledSuffix("MSL above WGS", "ajax-msl-above-wgs", "m");
andrewboyson 57:2d54e570de60 21 WebAddAjaxLabelledSuffix("Sensor height above MSL", "ajax-hgt-above-msl", "m");
andrewboyson 57:2d54e570de60 22 WebAddAjaxInputSuffix ("Sensor height above ground", 2, "ajax-sensor-hgt", "sensorheight", "m");
andrewboyson 57:2d54e570de60 23 WebAddAjaxLabelledSuffix("Ground height above MSL", "ajax-gnd-above-msl", "m");
andrewboyson 35:a535b65203a9 24
andrewboyson 57:2d54e570de60 25 WebAddH2("Trace");
andrewboyson 57:2d54e570de60 26 WebAddAjaxInputToggle("Trace GPS" , "ajax-trace-gps" , "gpstrace" );
andrewboyson 57:2d54e570de60 27 WebAddAjaxInputToggle("Verbose GPS" , "ajax-trace-verbose", "gpsverbose" );
andrewboyson 57:2d54e570de60 28 WebAddAjaxInputToggle("Trace message", "ajax-trace-msg" , "nmeamsgtrace" );
andrewboyson 57:2d54e570de60 29 WebAddAjaxInputToggle("Trace command", "ajax-trace-cmd" , "nmeacmdtrace" );
andrewboyson 27:eb5728b9052b 30
andrewboyson 57:2d54e570de60 31 WebAddH2("ZDA timing bins");
andrewboyson 49:115a5e4fac0c 32 HttpAddText("<code id='ajax-buckets'></code>\r\n");
andrewboyson 48:9f1ab7784067 33
andrewboyson 57:2d54e570de60 34 WebAddH2("Ajax");
andrewboyson 48:9f1ab7784067 35 HttpAddText("<code id='ajax-headers'></code>\r\n");
andrewboyson 48:9f1ab7784067 36 HttpAddText("<code id='ajax-response'></code>\r\n");
andrewboyson 48:9f1ab7784067 37
andrewboyson 57:2d54e570de60 38 WebAddEnd();
andrewboyson 27:eb5728b9052b 39 }