diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2009-07-18 21:53:59 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2009-07-18 21:53:59 +0000 |
commit | e52d9eb43c17c9badbfacab667877e89a9bc9b56 (patch) | |
tree | 57509d894756cba0ef28caf712308669bd139e93 /monitor_oncore.c | |
parent | 069b8592d2dedc5f104e03bccebd1c668457a1a1 (diff) | |
download | gpsd-e52d9eb43c17c9badbfacab667877e89a9bc9b56.tar.gz |
Connect the oncore decoder to gpsmon, and fix some display errors.
>From Hakan Johansson
Diffstat (limited to 'monitor_oncore.c')
-rw-r--r-- | monitor_oncore.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/monitor_oncore.c b/monitor_oncore.c index ba43f1e6..cd78ee12 100644 --- a/monitor_oncore.c +++ b/monitor_oncore.c @@ -93,7 +93,7 @@ static bool oncore_initialize(void) Ea1win = subwin(devicewin, 5, 80, 1, 0); Eawin = subwin(devicewin, MAXTRACKSATS+3, 27, 6, 0); Bbwin = subwin(devicewin, MAXVISSATS+3, 22, 6, 28); - Enwin = subwin(devicewin, 10, 9, 6, 51); + Enwin = subwin(devicewin, 10, 29, 6, 51); /*@ +onlytrans @*/ if (Ea1win==NULL || Eawin==NULL || Bbwin==NULL || Enwin==NULL) @@ -106,9 +106,9 @@ static bool oncore_initialize(void) (void)wborder(Ea1win, 0, 0, 0, 0, 0, 0, 0, 0), (void)wattrset(Ea1win, A_BOLD); - (void)mvwaddstr(Ea1win, 1, 1, "Time: Lat: Lon:"); - (void)mvwaddstr(Ea1win, 2, 1, "Antenna: DOP: Speed: Course:"); - (void)mvwaddstr(Ea1win, 3, 1, "SV/vis: Status: Alt:"); + (void)mvwaddstr(Ea1win, 1, 1, "Time: Lat: Lon:"); + (void)mvwaddstr(Ea1win, 2, 1, "Antenna: DOP: Speed: Course:"); + (void)mvwaddstr(Ea1win, 3, 1, "SV/vis: Status: Alt:"); (void)mvwprintw(Ea1win, 4, 4, " @@Ea (pos) "); (void)wattrset(Ea1win, A_NORMAL); @@ -180,7 +180,7 @@ static void oncore_update(void) alt = getbesl(buf, 23) / 100.0; speed = (float)(getbeuw(buf, 31) / 100.0); track = (float)(getbeuw(buf, 33) / 10.0); - dop = (float)(getbeuw(buf, 35) / 1.0); + dop = (float)(getbeuw(buf, 35) / 10.0); dopt = getub(buf, 37); nvis = getub(buf, 38); nsat = getub(buf, 39); |