diff --git a/app/consapp/rtkrcv/rtkrcv.c b/app/consapp/rtkrcv/rtkrcv.c index 92fdc6199..b2febf287 100644 --- a/app/consapp/rtkrcv/rtkrcv.c +++ b/app/consapp/rtkrcv/rtkrcv.c @@ -152,7 +152,7 @@ static const char *helptxt[]={ "observ [-n] [cycle] : show observation data", "navidata [cycle] : show navigation data", "stream [cycle] : show stream status", - "ssr [cycle] : show ssr corrections", + "ssr [-c] [-p] [cycle] : show ssr corrections", "error : show error/warning messages", "option [opt] : show option(s)", "set opt [val] : set option", @@ -924,7 +924,7 @@ static void prnavidata(vt_t *vt) double ion[8],utc[8]; gtime_t time; char id[8],s1[64],s2[64],s3[64]; - int i,valid,prn; + int i,valid; trace(4,"prnavidata:\n"); @@ -940,8 +940,8 @@ static void prnavidata(vt_t *vt) ESC_BOLD,"SAT","S","IOD","IOC","FRQ","A/A","SVH","Toe","Toc", "Ttr/Tof","L2C","L2P",ESC_RESET); for (i=0;i1) cycle=(int)(atof(args[1])*1000.0); - + int cycle = 0; + int cbias = 0, pbias = 0; + for (int i = 1; i < narg; i++) { + if (strcmp(args[i], "-c") == 0) { + cbias = 1; + continue; + } + if (strcmp(args[i], "-p") == 0) { + pbias = 1; + continue; + } + cycle = (int)(atof(args[i]) * 1000.0); + } + while (!vt_chkbrk(vt)) { if (cycle>0) vt_printf(vt,ESC_CLEAR); - prssr(vt); + prssr(vt, cbias, pbias); if (cycle>0) sleepms(cycle); else return; } vt_printf(vt,"\n"); @@ -1746,6 +1776,11 @@ static void deamonise(void) * stream [cycle] * Show stream status. Use option cycle for cyclic display. * +* ssr [-c] [-p] [cycle] +* Show the RTCM SSR state, with option -c to include code biases and +* with option -p to include phase biases. Use option cycle for cyclic +* display. +* * error * Show error/warning messages. To stop messages, send break (ctr-C). *