Fix telemetry and some more models

This commit is contained in:
Niklas Jensen
2026-01-01 23:13:22 +01:00
committed by nikguin04
parent 19ebceb959
commit 1117666f26
7 changed files with 611 additions and 51 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
import { HumanInputData, ModeData, ModesEnum } from '$lib/platform_shared/websocket_message'
import type { ControllerInput } from '$lib/types/models'
import { persistentStore } from '$lib/utilities/svelte-utilities'
import { writable, type Writable } from 'svelte/store'
@@ -35,7 +34,7 @@ export const mode: Writable<ModeData> = writable(ModeData.create({ mode: ModesEn
export const walkGait: Writable<WalkGaits> = writable(WalkGaits.Trot)
export const outControllerData = writable([0, 0, 0, 0, 0, 1, 0])
export const outControllerData = writable( HumanInputData.create( {left: {x:0,y:0}, right: {x:0,y:0}, height:0, s1:0, speed:0} ) )
export const kinematicData = writable([0, 0, 0, 0, 1, 0])
+1 -2
View File
@@ -1,5 +1,4 @@
import { DownloadOTAData, RSSIData } from '$lib/platform_shared/websocket_message'
import { DownloadOTA } from '$lib/types/models'
import { writable } from 'svelte/store'
type telemetry_data_type = {
@@ -16,7 +15,7 @@ function createTelemetry() {
setRSSI: (data: RSSIData) => {
update(telemetry_data => { telemetry_data.rssi = data; return telemetry_data })
},
setDownloadOTA: (data: DownloadOTA) => {
setDownloadOTA: (data: DownloadOTAData) => {
update(telemetry_data => { telemetry_data.download_ota = data; return telemetry_data })
}
}