Skip to content

Commit 60ea7dd

Browse files
authored
Merge pull request perdo1305#14 from FSLART/master
merge pedro and serrada changes
2 parents 80757a8 + 6869a6c commit 60ea7dd

14 files changed

Lines changed: 238 additions & 238 deletions

LART_Car_Dashboard_v1/src/ui/generate_dbc_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def main():
5858
for sig_slug in sorted(list(sig_slugs)):
5959
lines.append(f"float32 {sig_slug}")
6060

61-
with open(msg_path, "w") as mf:
61+
with open(msg_path, "w", encoding="utf-8") as mf:
6262
mf.write("\n".join(lines) + "\n")
6363
generated_msg_files.append(msg_filename)
6464

@@ -89,7 +89,7 @@ def main():
8989
"",
9090
"ament_package()"
9191
])
92-
with open(cmake_path, "w") as cf:
92+
with open(cmake_path, "w", encoding="utf-8") as cf:
9393
cf.write("\n".join(cmake_lines) + "\n")
9494
print(f"Generated {len(generated_msg_files)} .msg files and updated CMakeLists.txt")
9595

@@ -152,7 +152,7 @@ def main():
152152
])
153153

154154
header_path = os.path.join(script_dir, "dbc_api.h")
155-
with open(header_path, "w") as f:
155+
with open(header_path, "w", encoding="utf-8") as f:
156156
f.write("\n".join(header_lines) + "\n")
157157
print(f"Generated: {header_path}")
158158

@@ -215,7 +215,7 @@ def main():
215215
])
216216

217217
sub_path = os.path.join(script_dir, f"dbc_api_sub_{idx}.cpp")
218-
with open(sub_path, "w") as sf:
218+
with open(sub_path, "w", encoding="utf-8") as sf:
219219
sf.write("\n".join(sub_lines) + "\n")
220220
print(f"Generated: {sub_path}")
221221

@@ -518,7 +518,7 @@ def main():
518518
source_lines.extend(error_checking_lines)
519519

520520
source_path = os.path.join(script_dir, "dbc_api.cpp")
521-
with open(source_path, "w") as f:
521+
with open(source_path, "w", encoding="utf-8") as f:
522522
f.write("\n".join(source_lines) + "\n")
523523
print(f"Generated: {source_path}")
524524

LART_Car_Dashboard_v1/src/ui/generated/autonomous_t26.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @file autonomous_t26.c
33
*
4-
* @brief This source file was generated by cantools version 41.4.1 Tue Jun 30 04:51:53 2026.
4+
* @brief This source file was generated by cantools version 42.0.3 Thu Sep 17 15:25:20 2026.
55
*
66
* @copyright Copyright (c) 2018-2019 Erik Moqvist
77
*

LART_Car_Dashboard_v1/src/ui/generated/autonomous_t26.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @file autonomous_t26.h
33
*
4-
* @brief This header file was generated by cantools version 41.4.1 Tue Jun 30 04:51:53 2026.
4+
* @brief This header file was generated by cantools version 42.0.3 Thu Sep 17 15:25:20 2026.
55
*
66
* @copyright Copyright (c) 2018-2019 Erik Moqvist
77
*
@@ -327,7 +327,7 @@ struct autonomous_t26_acu_t {
327327
uint8_t acu_state;
328328

329329
/**
330-
* Range: 0..255 (0..255 ºc)
330+
* Range: 0..255 (0..255 ºc)
331331
* Scale: 1
332332
* Offset: 0
333333
*/

LART_Car_Dashboard_v1/src/ui/generated/can_bridge_impl_sub_0.cpp

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
4141
switch (can_id) {
4242
case 36u: {
4343
{
44-
lart_msgs::msg::Inv1Setaccurrent out = {};
44+
lart_msgs::msg::Inv1Setaccurrent out;
4545
bool decoded_any = false;
4646
{
4747
struct powertrain_t26_inv1_set_ac_current_t decoded = {};
@@ -58,7 +58,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
5858
}
5959
case 37u: {
6060
{
61-
lart_msgs::msg::Inv2Setaccurrent out = {};
61+
lart_msgs::msg::Inv2Setaccurrent out;
6262
bool decoded_any = false;
6363
{
6464
struct powertrain_t26_inv2_set_ac_current_t decoded = {};
@@ -75,7 +75,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
7575
}
7676
case 68u: {
7777
{
78-
lart_msgs::msg::Inv1Setbrakecurrent out = {};
78+
lart_msgs::msg::Inv1Setbrakecurrent out;
7979
bool decoded_any = false;
8080
{
8181
struct powertrain_t26_inv1_set_brake_current_t decoded = {};
@@ -92,7 +92,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
9292
}
9393
case 69u: {
9494
{
95-
lart_msgs::msg::Inv2Setbrakecurrent out = {};
95+
lart_msgs::msg::Inv2Setbrakecurrent out;
9696
bool decoded_any = false;
9797
{
9898
struct powertrain_t26_inv2_set_brake_current_t decoded = {};
@@ -109,7 +109,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
109109
}
110110
case 80u: {
111111
{
112-
lart_msgs::msg::AppsAdcRaw out = {};
112+
lart_msgs::msg::AppsAdcRaw out;
113113
bool decoded_any = false;
114114
{
115115
struct powertrain_t26_apps_adc_raw_t decoded = {};
@@ -127,7 +127,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
127127
}
128128
case 81u: {
129129
{
130-
lart_msgs::msg::Acu out = {};
130+
lart_msgs::msg::Acu out;
131131
bool decoded_any = false;
132132
{
133133
struct autonomous_t26_acu_t decoded = {};
@@ -152,7 +152,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
152152
}
153153
case 96u: {
154154
{
155-
lart_msgs::msg::Dashboard out = {};
155+
lart_msgs::msg::Dashboard out;
156156
bool decoded_any = false;
157157
{
158158
struct powertrain_t26_dash_board_t decoded = {};
@@ -170,7 +170,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
170170
}
171171
case 97u: {
172172
{
173-
lart_msgs::msg::Jetson out = {};
173+
lart_msgs::msg::Jetson out;
174174
bool decoded_any = false;
175175
{
176176
struct autonomous_t26_jetson_t decoded = {};
@@ -192,7 +192,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
192192
}
193193
case 100u: {
194194
{
195-
lart_msgs::msg::Inv1Seterpm out = {};
195+
lart_msgs::msg::Inv1Seterpm out;
196196
bool decoded_any = false;
197197
{
198198
struct powertrain_t26_inv1_set_erpm_t decoded = {};
@@ -209,7 +209,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
209209
}
210210
case 101u: {
211211
{
212-
lart_msgs::msg::Inv2Seterpm out = {};
212+
lart_msgs::msg::Inv2Seterpm out;
213213
bool decoded_any = false;
214214
{
215215
struct powertrain_t26_inv2_set_erpm_t decoded = {};
@@ -226,7 +226,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
226226
}
227227
case 129u: {
228228
{
229-
lart_msgs::msg::StartCharging out = {};
229+
lart_msgs::msg::StartCharging out;
230230
bool decoded_any = false;
231231
{
232232
struct powertrain_t26_start_charging_t decoded = {};
@@ -240,7 +240,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
240240
}
241241
}
242242
{
243-
lart_msgs::msg::VcuHv out = {};
243+
lart_msgs::msg::VcuHv out;
244244
bool decoded_any = false;
245245
{
246246
struct autonomous_t26_vcu_hv_t decoded = {};
@@ -259,7 +259,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
259259
}
260260
case 130u: {
261261
{
262-
lart_msgs::msg::StartBalancing out = {};
262+
lart_msgs::msg::StartBalancing out;
263263
bool decoded_any = false;
264264
{
265265
struct powertrain_t26_start_balancing_t decoded = {};
@@ -276,7 +276,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
276276
}
277277
case 131u: {
278278
{
279-
lart_msgs::msg::StartPrecharge out = {};
279+
lart_msgs::msg::StartPrecharge out;
280280
bool decoded_any = false;
281281
{
282282
struct powertrain_t26_start_pre_charge_t decoded = {};
@@ -293,7 +293,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
293293
}
294294
case 132u: {
295295
{
296-
lart_msgs::msg::Inv1Setposition out = {};
296+
lart_msgs::msg::Inv1Setposition out;
297297
bool decoded_any = false;
298298
{
299299
struct powertrain_t26_inv1_set_position_t decoded = {};
@@ -310,7 +310,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
310310
}
311311
case 133u: {
312312
{
313-
lart_msgs::msg::Inv2Setposition out = {};
313+
lart_msgs::msg::Inv2Setposition out;
314314
bool decoded_any = false;
315315
{
316316
struct powertrain_t26_inv2_set_position_t decoded = {};
@@ -327,7 +327,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
327327
}
328328
case 164u: {
329329
{
330-
lart_msgs::msg::Inv1Setrelcurrent out = {};
330+
lart_msgs::msg::Inv1Setrelcurrent out;
331331
bool decoded_any = false;
332332
{
333333
struct powertrain_t26_inv1_set_rel_current_t decoded = {};
@@ -344,7 +344,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
344344
}
345345
case 165u: {
346346
{
347-
lart_msgs::msg::Inv2Setrelcurrent out = {};
347+
lart_msgs::msg::Inv2Setrelcurrent out;
348348
bool decoded_any = false;
349349
{
350350
struct powertrain_t26_inv2_set_rel_current_t decoded = {};
@@ -361,7 +361,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
361361
}
362362
case 196u: {
363363
{
364-
lart_msgs::msg::Inv1Setrelbrakecurrent out = {};
364+
lart_msgs::msg::Inv1Setrelbrakecurrent out;
365365
bool decoded_any = false;
366366
{
367367
struct powertrain_t26_inv1_set_rel_brake_current_t decoded = {};
@@ -378,7 +378,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
378378
}
379379
case 197u: {
380380
{
381-
lart_msgs::msg::Inv2Setrelbrakecurrent out = {};
381+
lart_msgs::msg::Inv2Setrelbrakecurrent out;
382382
bool decoded_any = false;
383383
{
384384
struct powertrain_t26_inv2_set_rel_brake_current_t decoded = {};
@@ -395,7 +395,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
395395
}
396396
case 220u: {
397397
{
398-
lart_msgs::msg::StartProgrammer out = {};
398+
lart_msgs::msg::StartProgrammer out;
399399
bool decoded_any = false;
400400
{
401401
struct powertrain_t26_start_programmer_t decoded = {};
@@ -412,7 +412,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
412412
}
413413
case 228u: {
414414
{
415-
lart_msgs::msg::Inv1Setdigoutput out = {};
415+
lart_msgs::msg::Inv1Setdigoutput out;
416416
bool decoded_any = false;
417417
{
418418
struct powertrain_t26_inv1_set_dig_output_t decoded = {};
@@ -432,7 +432,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
432432
}
433433
case 229u: {
434434
{
435-
lart_msgs::msg::Inv2Setdigoutput out = {};
435+
lart_msgs::msg::Inv2Setdigoutput out;
436436
bool decoded_any = false;
437437
{
438438
struct powertrain_t26_inv2_set_dig_output_t decoded = {};
@@ -452,7 +452,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
452452
}
453453
case 260u: {
454454
{
455-
lart_msgs::msg::Inv1Setmaxaccurrent out = {};
455+
lart_msgs::msg::Inv1Setmaxaccurrent out;
456456
bool decoded_any = false;
457457
{
458458
struct powertrain_t26_inv1_set_max_ac_current_t decoded = {};
@@ -469,7 +469,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
469469
}
470470
case 261u: {
471471
{
472-
lart_msgs::msg::Inv2Setmaxaccurrent out = {};
472+
lart_msgs::msg::Inv2Setmaxaccurrent out;
473473
bool decoded_any = false;
474474
{
475475
struct powertrain_t26_inv2_set_max_ac_current_t decoded = {};
@@ -486,7 +486,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
486486
}
487487
case 292u: {
488488
{
489-
lart_msgs::msg::Inv1Setmaxacbrakecurrent out = {};
489+
lart_msgs::msg::Inv1Setmaxacbrakecurrent out;
490490
bool decoded_any = false;
491491
{
492492
struct powertrain_t26_inv1_set_max_ac_brake_current_t decoded = {};
@@ -503,7 +503,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
503503
}
504504
case 293u: {
505505
{
506-
lart_msgs::msg::Inv2Setmaxacbrakecurrent out = {};
506+
lart_msgs::msg::Inv2Setmaxacbrakecurrent out;
507507
bool decoded_any = false;
508508
{
509509
struct powertrain_t26_inv2_set_max_ac_brake_current_t decoded = {};
@@ -520,7 +520,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
520520
}
521521
case 324u: {
522522
{
523-
lart_msgs::msg::Inv1Setmaxdccurrent out = {};
523+
lart_msgs::msg::Inv1Setmaxdccurrent out;
524524
bool decoded_any = false;
525525
{
526526
struct powertrain_t26_inv1_set_max_dc_current_t decoded = {};
@@ -537,7 +537,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
537537
}
538538
case 325u: {
539539
{
540-
lart_msgs::msg::Inv2Setmaxdccurrent out = {};
540+
lart_msgs::msg::Inv2Setmaxdccurrent out;
541541
bool decoded_any = false;
542542
{
543543
struct powertrain_t26_inv2_set_max_dc_current_t decoded = {};
@@ -554,7 +554,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
554554
}
555555
case 356u: {
556556
{
557-
lart_msgs::msg::Inv1Setmaxdcbrakecurrent out = {};
557+
lart_msgs::msg::Inv1Setmaxdcbrakecurrent out;
558558
bool decoded_any = false;
559559
{
560560
struct powertrain_t26_inv1_set_max_dc_brake_current_t decoded = {};
@@ -571,7 +571,7 @@ bool CanBridgeImpl::handle_frame_chunk_0(uint32_t can_id, const uint8_t* data, s
571571
}
572572
case 357u: {
573573
{
574-
lart_msgs::msg::Inv2Setmaxdcbrakecurrent out = {};
574+
lart_msgs::msg::Inv2Setmaxdcbrakecurrent out;
575575
bool decoded_any = false;
576576
{
577577
struct powertrain_t26_inv2_set_max_dc_brake_current_t decoded = {};

0 commit comments

Comments
 (0)