-
Notifications
You must be signed in to change notification settings - Fork 6
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
Andd54/independent watchdog #68
Conversation
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.
Structure LGTM.
Co-authored-by: AzulRadio <[email protected]>
Co-authored-by: AzulRadio <[email protected]>
Co-authored-by: AzulRadio <[email protected]>
Co-authored-by: AzulRadio <[email protected]>
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.
I would name the example folder watchdog/
instead of iwdg/
but that depends on you. Great job as always
SOURCES main.cc | ||
) | ||
|
||
irm_add_arm_executable(${PROJECT_NAME}_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.
irm_add_arm_executable(${PROJECT_NAME}_C | |
irm_add_arm_executable(${PROJECT_NAME}_typeC |
} | ||
} | ||
|
||
//================================================================================================== | ||
// Gimbal | ||
//================================================================================================== | ||
|
||
const osThreadAttr_t gimbalTaskAttribute = {.name = "gimbalTask", | ||
const osThreadAttr_t rmgimbalTaskAttribute = {.name = "gimbalTask", |
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.
const osThreadAttr_t rmgimbalTaskAttribute = {.name = "gimbalTask", | |
const osThreadAttr_t rmGimbalTaskAttribute = {.name = "gimbalTask", |
@@ -634,23 +656,26 @@ static bsp::BuzzerNoteDelayed Mario[] = { | |||
static bsp::Buzzer* buzzer = nullptr; | |||
static display::OLED* OLED = nullptr; | |||
//simple bitmask function for chassis flag | |||
|
|||
#define BITMAP_SUMMARY 0b11111111 // expected bit map for chassis motors |
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.
#define BITMAP_SUMMARY 0b11111111 // expected bit map for chassis motors | |
#define BITMAP_SUMMARY 0xFF // expected bit map for chassis motors |
send = new bsp::CanBridge(can2, 0x20A, 0x20B); | ||
} | ||
|
||
void RM_RTOS_Threads_Init(void) { | ||
imuTaskHandle = osThreadNew(imuTask, nullptr, &imuTaskAttribute); | ||
gimbalTaskHandle = osThreadNew(gimbalTask, nullptr, &gimbalTaskAttribute); | ||
gimbalTaskHandle = osThreadNew(gimbalTask, nullptr, &rmgimbalTaskAttribute); |
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.
gimbalTaskHandle = osThreadNew(gimbalTask, nullptr, &rmgimbalTaskAttribute); | |
gimbalTaskHandle = osThreadNew(gimbalTask, nullptr, &rmGimbalTaskAttribute); |
independent watchdog completed and fundamental trigger for hardware reset is completed. Now able to detect basic can connection errors after the timeout.