diff --git a/client/src/lib/Dashboard/Compass.svelte b/client/src/lib/Dashboard/Compass.svelte index a22fe28..86837a9 100644 --- a/client/src/lib/Dashboard/Compass.svelte +++ b/client/src/lib/Dashboard/Compass.svelte @@ -19,12 +19,22 @@ $: placeholder = accx === -999 && accy === -999 -
-

- Heading {getDirection(orientation)} ({orientation.toFixed(2)}°) +

+

+ {#if !placeholder} + Heading {getDirection(orientation)} ({orientation.toFixed(2)}°) + {:else} + -------------------------------- + {/if}

-

- {getAcceleration(accResolved)} ({mpss2knps(accResolved).toFixed(2)} - kn/s) +

+ {#if !placeholder} + {getAcceleration(accResolved)} ({mpss2knps(accResolved).toFixed(2)} + kn/s) + {:else} + ----------------------------------------------------- + {/if}