A GPS disciplined clock

Dependencies:   net lpc1768 crypto clock web log

web-this/nmea/web-nmea-html.c

Committer:
andrewboyson
Date:
2020-05-06
Revision:
97:af023452967f
Parent:
81:a1de28caf11a

File content as of revision 97:af023452967f:

#include <stdio.h>

#include "http.h"
#include "web-nav-this.h"
#include "web-add.h"

void WebNmeaHtml()
{
    HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
    WebAddHeader("NMEA", "settings.css", "nmea.js");
    WebAddNav(NMEA_PAGE);
    WebAddH1("NMEA");
    
    WebAddInputButton("Reset GPS module", "Reset", "/nmea", "reset");
        
    WebAddH2("Position");
    WebAddAjaxLabelled("WGS", "ajax-position");
    WebAddAjaxLabelled("Satellite count", "ajax-sat-count");
    WebAddAjaxLabelled("Dilution of Precision", "ajax-dop");
    
    WebAddH2("Height");
    WebAddAjaxLabelledSuffix("MSL above WGS",                 "ajax-msl-above-wgs",              "m");
    WebAddAjaxLabelledSuffix("Sensor height above MSL",       "ajax-hgt-above-msl",              "m");
    WebAddAjaxInputSuffix   ("Sensor height above ground", 2, "ajax-sensor-hgt", "sensorheight", "m");
    WebAddAjaxLabelledSuffix("Ground height above MSL",       "ajax-gnd-above-msl",              "m");
    
    WebAddH2("Trace");
    WebAddAjaxInputToggle("Trace GPS"    , "ajax-trace-gps"    , "gpstrace"     );
    WebAddAjaxInputToggle("Verbose GPS"  , "ajax-trace-verbose", "gpsverbose"   );
    WebAddAjaxInputToggle("Trace message", "ajax-trace-msg"    , "nmeamsgtrace" );
    WebAddAjaxInputToggle("Trace command", "ajax-trace-cmd"    , "nmeacmdtrace" );

    WebAddH2("ZDA timing bins");
    HttpAddText("<code id='ajax-buckets'></code>\r\n");
    
    WebAddEnd();
}