-
Notifications
You must be signed in to change notification settings - Fork 0
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
DCM code fixes #29
DCM code fixes #29
Conversation
DCM/Src/controls.c
Outdated
@@ -73,7 +73,17 @@ static TickType_t previousTickCount; | |||
|
|||
// ------------------------------------------------------------------------------------------------ | |||
// Function implementations | |||
|
|||
void setFastTorqueWithParallelRegen(uint8_t brakePressurePsi_u8, uint8_t throttlePos_u8); |
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.
why are these prototypes set in the .c?
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.
we define the function after the point where we call it.
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.
forward declaration
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.
could this line be moved to controls.h just to be consistent with other functions?
@@ -89,7 +89,7 @@ struct cmr_can { | |||
cmr_canRXCallback_t rxCallback; | |||
}; | |||
|
|||
void cmr_canInit( | |||
void cmr_FDcanInit( |
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.
oml how did this work lmfao
@@ -16,6 +16,7 @@ | |||
#ifdef HAL_FDCAN_MODULE_ENABLED | |||
|
|||
uint32_t _platform_FDcanGPIOAF(FDCAN_GlobalTypeDef *instance, GPIO_TypeDef *port); | |||
void _platform_rccFDCanClockEnable(); |
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.
does this need to be in here or does it exist only in rcc?
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.
_platform_rccFDCanClockEnable() is only called in rcc.c but defined in h725.c
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.
It should stay in h275 imo since its platform specific
@@ -55,10 +55,11 @@ void setEnduranceTestTorque( | |||
// Public functions | |||
|
|||
void initControls(); | |||
void integrateCurrent(); |
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.
integrateCurrent() is called in motors.c, how did this even compile lol
DCM borked on GCC 14