Skip to content

Commit 879495a

Browse files
committed
SysID
1 parent 4ec7324 commit 879495a

3 files changed

Lines changed: 152 additions & 1 deletion

File tree

boards/LCU/LCU_measurements.json

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,112 @@
405405
"name": "Random Period (ms)",
406406
"type": "uint32"
407407
},
408+
{
409+
"id": "sysid_mode",
410+
"name": "SysID Mode",
411+
"type": "uint32"
412+
},
413+
{
414+
"id": "sysid_anchor_distance",
415+
"name": "SysID Anchor Distance (mm)",
416+
"type": "float32",
417+
"podUnits": "m",
418+
"displayUnits": "mm"
419+
},
420+
{
421+
"id": "sysid_profile",
422+
"name": "SysID Profile",
423+
"type": "uint32"
424+
},
425+
{
426+
"id": "sysid_bias_current_a",
427+
"name": "SysID Bias Current",
428+
"type": "float32",
429+
"podUnits": "A",
430+
"displayUnits": "A"
431+
},
432+
{
433+
"id": "sysid_amplitude_current_a",
434+
"name": "SysID Amplitude Current",
435+
"type": "float32",
436+
"podUnits": "A",
437+
"displayUnits": "A"
438+
},
439+
{
440+
"id": "sysid_max_current_a",
441+
"name": "SysID Max Current",
442+
"type": "float32",
443+
"podUnits": "A",
444+
"displayUnits": "A"
445+
},
446+
{
447+
"id": "sysid_slew_a_per_s",
448+
"name": "SysID Current Slew",
449+
"type": "float32",
450+
"podUnits": "A/s",
451+
"displayUnits": "A/s"
452+
},
453+
{
454+
"id": "sysid_duration_ms",
455+
"name": "SysID Duration (ms)",
456+
"type": "uint32"
457+
},
458+
{
459+
"id": "sysid_seed",
460+
"name": "SysID Seed",
461+
"type": "uint32"
462+
},
463+
{
464+
"id": "sysid_active",
465+
"name": "SysID Active",
466+
"type": "uint32"
467+
},
468+
{
469+
"id": "sysid_phase",
470+
"name": "SysID Phase",
471+
"type": "uint32"
472+
},
473+
{
474+
"id": "sysid_segment_index",
475+
"name": "SysID Segment Index",
476+
"type": "uint32"
477+
},
478+
{
479+
"id": "sysid_sample_index",
480+
"name": "SysID Sample Index",
481+
"type": "uint32"
482+
},
483+
{
484+
"id": "sysid_safety_code",
485+
"name": "SysID Safety Code",
486+
"type": "uint32"
487+
},
488+
{
489+
"id": "sysid_commanded_current_a",
490+
"name": "SysID Commanded Current",
491+
"type": "float32",
492+
"podUnits": "A",
493+
"displayUnits": "A"
494+
},
495+
{
496+
"id": "sysid_raw_current_a",
497+
"name": "SysID Raw Current",
498+
"type": "float32",
499+
"podUnits": "A",
500+
"displayUnits": "A"
501+
},
502+
{
503+
"id": "sysid_commanded_duty_percent",
504+
"name": "SysID Commanded Duty",
505+
"type": "float32",
506+
"podUnits": "%",
507+
"displayUnits": "%"
508+
},
509+
{
510+
"id": "sysid_elapsed_ms",
511+
"name": "SysID Elapsed (ms)",
512+
"type": "uint32"
513+
},
408514
{
409515
"id": "loop_total_us",
410516
"name": "Loop Total (us)",

boards/LCU/orders.json

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,5 +174,28 @@
174174
"variables": [
175175
],
176176
"id": 9035
177+
},
178+
{
179+
"type": "order",
180+
"name": "SysID Run",
181+
"variables": [
182+
"sysid_mode",
183+
"sysid_anchor_distance",
184+
"sysid_profile",
185+
"sysid_bias_current_a",
186+
"sysid_amplitude_current_a",
187+
"sysid_max_current_a",
188+
"sysid_slew_a_per_s",
189+
"sysid_duration_ms",
190+
"sysid_seed"
191+
],
192+
"id": 9040
193+
},
194+
{
195+
"type": "order",
196+
"name": "Stop SysID",
197+
"variables": [
198+
],
199+
"id": 9041
177200
}
178-
]
201+
]

boards/LCU/packets.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,5 +145,27 @@
145145
"period_type": "us",
146146
"period": 500.0,
147147
"socket": "control_station_udp"
148+
},
149+
{
150+
"type": "data",
151+
"name": "SysID State",
152+
"variables": [
153+
"sysid_active",
154+
"sysid_mode",
155+
"sysid_phase",
156+
"sysid_profile",
157+
"sysid_segment_index",
158+
"sysid_sample_index",
159+
"sysid_safety_code",
160+
"sysid_commanded_current_a",
161+
"sysid_raw_current_a",
162+
"sysid_commanded_duty_percent",
163+
"sysid_anchor_distance",
164+
"sysid_elapsed_ms"
165+
],
166+
"id": 9523,
167+
"period_type": "us",
168+
"period": 500.0,
169+
"socket": "control_station_udp"
148170
}
149171
]

0 commit comments

Comments
 (0)