-
Notifications
You must be signed in to change notification settings - Fork 2
[VCU] event modes, energy metering #289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
9b29c8e
fe7f373
69e68d6
b7dcd01
38b4837
ca29d75
13c587a
5476993
1e9dbb5
bbdeb25
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,9 @@ | |
|
|
||
| #include "default_params.h" | ||
|
|
||
| static const vcu_parameters_t autocross_params = { VCU_DEFAULT_PARAMS }; | ||
| static const vcu_parameters_t autocross_params = { | ||
| VCU_DEFAULT_PARAMS, | ||
| .event_mode = 3, \ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The backslash .event_mode = 3, |
||
| }; | ||
|
|
||
| #endif /* AUTOCROSS_PARAMS_H */ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,12 @@ | |
|
|
||
| #include "default_params.h" | ||
|
|
||
| static const vcu_parameters_t endurance_params = { VCU_DEFAULT_PARAMS }; | ||
| static const vcu_parameters_t endurance_params = { | ||
| VCU_DEFAULT_PARAMS, | ||
| .regen_linelock = { \ | ||
| .disable = true, \ | ||
| }, \ | ||
| .event_mode = 4, \ | ||
|
Comment on lines
+8
to
+35
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are two major issues here:
.regen_linelock.disable = false,
.event_mode = 4, |
||
| }; | ||
|
|
||
| #endif /* ENDURANCE_PARAMS_H */ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,8 +18,9 @@ static const vcu_parameters_t skidpad_params = { | |
| /* apps= 0.8 */ 0.70f, | ||
| /* apps= 0.9 */ 0.70f, | ||
| /* apps= 1.0 */ 0.70f, | ||
| }, | ||
| .torque_map.pedal_curve_exponent = 1.0f, | ||
| }, \ | ||
| .torque_map.pedal_curve_exponent = 1.0f, \ | ||
| .event_mode = 2, \ | ||
|
Comment on lines
+21
to
+23
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The backslashes },
.torque_map.pedal_curve_exponent = 1.0f,
.event_mode = 2, |
||
| }; | ||
| // clang-format on | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The backslash
\at the end of the line is unnecessary because this is a standard C struct initialization, not a preprocessor macro definition. Trailing backslashes outside of macros can lead to compiler warnings or unexpected line-splicing behavior if trailing whitespace is present.