Skip to content

Commit a30a764

Browse files
committed
Increase motor task stack
Avoid accidental stack overflows from small stack. Updates scottbez1#37 Updates scottbez1#50
1 parent 6f3c30c commit a30a764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firmware/src/motor_task.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ static const float IDLE_CORRECTION_MAX_ANGLE_RAD = 5 * PI / 180;
1616
static const float IDLE_CORRECTION_RATE_ALPHA = 0.0005;
1717

1818

19-
MotorTask::MotorTask(const uint8_t task_core) : Task("Motor", 1200, 1, task_core) {
19+
MotorTask::MotorTask(const uint8_t task_core) : Task("Motor", 2048, 1, task_core) {
2020
queue_ = xQueueCreate(5, sizeof(Command));
2121
assert(queue_ != NULL);
2222
}

0 commit comments

Comments
 (0)