Skip to content

Commit f22cbce

Browse files
prepped for wheel spin
1 parent a683269 commit f22cbce

File tree

3 files changed

+445
-1
lines changed

3 files changed

+445
-1
lines changed

lib/systems/src/DrivetrainSystem.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ DrivetrainState_e DrivetrainSystem::_evaluate_state_machine(DrivetrainSystem::Cm
207207
bool valid_drivetrain_command = etl::holds_alternative<DrivetrainCommand_s>(cmd);
208208

209209
if (valid_drivetrain_command) {
210-
DrivetrainCommand_s drivetrain_command = etl::get<DrivetrainCommand_s>(cmd);
210+
// DrivetrainCommand_s drivetrain_command = etl::get<DrivetrainCommand_s>(cmd);
211+
DrivetrainCommand_s drivetrain_command = {{1, 0, 0, 0}, {1.0f, 0.0f, 0.0f, 0.0f}};
211212
_set_drivetrain_command(drivetrain_command);
212213
}
213214
_set_ef_active_pin(true);

platformio.ini

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,52 @@ check_src_filters =
3232
+<**/*.h>
3333
-<test/**>
3434
-<src/main_can_test.cpp>
35+
-<src/wheel_spin_main.cpp>
3536
test_framework = googletest
3637
build_unflags = -std=gnu++11
3738
build_flags =
3839
-std=c++17
3940
-D TEENSY_OPT_SMALLEST_CODE
4041
-I include
42+
build_src_filter =
43+
+<**/*.cpp>
44+
-<main_can_test.cpp>
45+
-<wheel_spin_main.cpp>
46+
platform = teensy
47+
board = teensy41
48+
framework = arduino
49+
monitor_speed = 115200
50+
upload_protocol = teensy-cli
51+
test_ignore =
52+
test_interfaces
53+
test_systems
54+
lib_deps =
55+
${common.lib_deps_shared}
56+
${on_hardware_common.lib_deps_third_party}
57+
${on_hardware_common.ht_lib_deps}
4158

59+
[env:wheel_spin]
60+
check_tool = clangtidy
61+
check_severity = medium, high
62+
check_flags =
63+
clangtidy: --config-file=./.clang-tidy
64+
check_src_filters =
65+
+<**/*.cpp>
66+
+<**/*.h>
67+
-<test/**>
68+
-<src/main_can_test.cpp>
69+
-<src/wheel_spin_main.cpp>
70+
test_framework = googletest
71+
build_unflags = -std=gnu++11
72+
build_flags =
73+
-std=c++17
74+
-D TEENSY_OPT_SMALLEST_CODE
75+
-I include
4276
build_src_filter =
4377
+<**/*.cpp>
4478
-<main_can_test.cpp>
79+
-<main.cpp>
80+
+<wheel_spin_main.cpp>
4581
platform = teensy
4682
board = teensy41
4783
framework = arduino
@@ -62,6 +98,7 @@ build_src_filter =
6298
-<VCR_Globals.cpp>
6399
-<VCR_InterfaceTasks.cpp>
64100
-<main.cpp>
101+
-<wheel_spin_main.cpp>
65102
+<VCR_Constants.cpp>
66103
+<../test/test_systems/test_systems.cpp>
67104
build_unflags = -std=gnu++11
@@ -94,6 +131,7 @@ check_src_filters =
94131
-<src/old_main.cpp>
95132
build_src_filter =
96133
-<*.cpp>
134+
-<wheel_spin_main.cpp>
97135
+<main_ethernet_test.cpp>
98136
platform = teensy
99137
board = teensy41
@@ -122,6 +160,7 @@ build_flags =
122160
build_src_filter =
123161
+<**/*.cpp>
124162
-<main.cpp>
163+
-<wheel_spin_main.cpp>
125164
; -<main_can_test.cpp>
126165
platform = teensy
127166
board = teensy41

0 commit comments

Comments
 (0)