Fix imu data among other things, start at wifi fix

This commit is contained in:
Niklas Jensen
2026-01-02 13:37:17 +01:00
committed by nikguin04
parent d6e281d6a5
commit 10e56e25b3
7 changed files with 133 additions and 97 deletions
+2 -2
View File
@@ -5,12 +5,12 @@
import { onMount } from 'svelte'
import { mpu, socket } from '$lib/stores'
import { imu } from '$lib/stores/imu'
import { MessageTopic, type IMU } from '$lib/types/models'
import type { IMUData } from '$lib/platform_shared/websocket_message'
let layout = $derived($views.find(v => v.name === $selectedView)!)
onMount(() => {
socket.on(MessageTopic.imu, (data: IMU) => {
socket.on(IMUData, (data: IMUData) => {
imu.addData(data)
if (data.heading)
mpu.update(mpuData => {