fossekall-interface 0.1.144 → 0.1.145

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,141 +0,0 @@
1
- import bin, { Measurer, Schema } from 'typed-binary';
2
- // This file was generated by FRICC on 2026-07-08 21:58:02. Do not edit manually!
3
- // The current version of typed-binary does not support 64-bit primitives.
4
- // So for we'll implement our own schemas. :)
5
- const __littleEndian = true;
6
- class UInt64Schema extends Schema {
7
- maxSize = 8;
8
- read(input) {
9
- const bytes = new Uint8Array(8);
10
- input.readSlice(bytes, 0, 8);
11
- const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
12
- return view.getBigUint64(0, __littleEndian);
13
- }
14
- write(output, value) {
15
- const bytes = new Uint8Array(8);
16
- const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
17
- view.setBigUint64(0, value, __littleEndian);
18
- output.writeSlice(bytes);
19
- }
20
- measure(_, measurer = new Measurer()) {
21
- return measurer.add(8);
22
- }
23
- }
24
- class Int64Schema extends Schema {
25
- maxSize = 8;
26
- read(input) {
27
- const bytes = new Uint8Array(8);
28
- input.readSlice(bytes, 0, 8);
29
- const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
30
- return view.getBigInt64(0, __littleEndian);
31
- }
32
- write(output, value) {
33
- const bytes = new Uint8Array(8);
34
- const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
35
- view.setBigInt64(0, value, __littleEndian);
36
- output.writeSlice(bytes);
37
- }
38
- measure(_, measurer = new Measurer()) {
39
- return measurer.add(8);
40
- }
41
- }
42
- class Float64Schema extends Schema {
43
- maxSize = 8;
44
- read(input) {
45
- const bytes = new Uint8Array(8);
46
- input.readSlice(bytes, 0, 8);
47
- const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
48
- return view.getFloat64(0, __littleEndian);
49
- }
50
- write(output, value) {
51
- const bytes = new Uint8Array(8);
52
- const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
53
- view.setFloat64(0, value, __littleEndian);
54
- output.writeSlice(bytes);
55
- }
56
- measure(_, measurer = new Measurer()) {
57
- return measurer.add(8);
58
- }
59
- }
60
- const u64 = new UInt64Schema();
61
- const i64 = new Int64Schema();
62
- const f64 = new Float64Schema();
63
- export const Telemetry_GNSS_DATA = bin.object({
64
- data_valid: bin.u8, // unsigned char
65
- numSV: bin.u8, // unsigned char
66
- lat: f64, // double
67
- lon: f64, // double
68
- hMSL: f64, // double
69
- gSpeed: f64, // double
70
- headMot: f64, // double
71
- hAcc: bin.u32, // unsigned int
72
- vAcc: bin.u32, // unsigned int
73
- velN: bin.i32, // int
74
- velE: bin.i32, // int
75
- velD: bin.i32, // int
76
- });
77
- export const Telemetry_BME280_DATA = bin.object({
78
- valid: bin.u8, // unsigned char
79
- temperature: bin.f32, // float
80
- pressure: bin.f32, // float
81
- humidity: bin.f32, // float
82
- timestamp: bin.u32, // unsigned int
83
- });
84
- export const Telemetry_MS5611_DATA = bin.object({
85
- valid: bin.u8, // unsigned char
86
- temperature: bin.f32, // float
87
- pressure: bin.f32, // float
88
- timestamp: bin.u32, // unsigned int
89
- });
90
- export const Telemetry_AccelerationData = bin.object({
91
- acc_x_m_per_ss: bin.f32, // float
92
- acc_y_m_per_ss: bin.f32, // float
93
- acc_z_m_per_ss: bin.f32, // float
94
- });
95
- export const Telemetry_GyroData = bin.object({
96
- gyro_x: bin.f32, // float
97
- gyro_y: bin.f32, // float
98
- gyro_z: bin.f32, // float
99
- });
100
- export const Telemetry_ICM40609D_DATA = bin.object({
101
- acc_m_per_ss: Telemetry_AccelerationData, // Telemetry::AccelerationData
102
- gyro: Telemetry_GyroData, // Telemetry::GyroData
103
- temperature_C: bin.f32, // float
104
- });
105
- export const Telemetry_STIM377H_DATA = bin.object({
106
- acc: Telemetry_AccelerationData, // Telemetry::AccelerationData
107
- gyro: Telemetry_GyroData, // Telemetry::GyroData
108
- });
109
- export const Telemetry_PressureData = bin.object({
110
- flotation_pressure: bin.f32, // float
111
- separation_pressure: bin.f32, // float
112
- });
113
- export const Telemetry_SensorData = bin.object({
114
- gnss_data: Telemetry_GNSS_DATA, // Telemetry::GNSS_DATA
115
- bme_data: Telemetry_BME280_DATA, // Telemetry::BME280_DATA
116
- ms_data: Telemetry_MS5611_DATA, // Telemetry::MS5611_DATA
117
- icm_data: Telemetry_ICM40609D_DATA, // Telemetry::ICM40609D_DATA
118
- stim_data: Telemetry_STIM377H_DATA, // Telemetry::STIM377H_DATA
119
- pressure_data: Telemetry_PressureData, // Telemetry::PressureData
120
- });
121
- export const spec = {
122
- Telemetry_SensorData: {
123
- port: 3001,
124
- schema: Telemetry_SensorData,
125
- enums: {
126
- gnss_data: {},
127
- bme_data: {},
128
- ms_data: {},
129
- icm_data: {
130
- acc_m_per_ss: {},
131
- gyro: {},
132
- },
133
- stim_data: {
134
- acc: {},
135
- gyro: {},
136
- },
137
- pressure_data: {},
138
- },
139
- },
140
- };
141
- export default spec;