A-SW Hub / Repositories
Local Gitea · READ ONLY
← 저장소 Repositories
REPOSITORY

tymict/agri-hmi Private

[참조 MVP] 농기계 운용 HMI — ICU 텔레메트리를 운전자용 상태·경보·진행률 View Model로 변환합니다.

https://git.agrithing.ai/tymict/agri-hmi.git
6 commits
1 items · main
·/ tests/component.test.mjs
javascript · 415 B · fdd7b92 Download
import test from 'node:test';import assert from 'node:assert/strict';import { toViewModel } from '../src/component.mjs';test('maps ICU telemetry to an operator view model', () => { const view = toViewModel({ mode: 'AUTO', speed_mps: 1.4, completed_area_ha: 2.1, total_area_ha: 3, faults: [] }); assert.equal(view.system, 'NORMAL'); assert.equal(view.progress_percent, 70); assert.deepEqual(view.alerts, []); });