Skip to content

Commit

Permalink
Increase motor task stack
Browse files Browse the repository at this point in the history
Avoid accidental stack overflows from small stack.

Updates #37
Updates #50
  • Loading branch information
scottbez1 committed Apr 7, 2022
1 parent 21031d1 commit e35319a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/src/motor_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static const float IDLE_CORRECTION_MAX_ANGLE_RAD = 5 * PI / 180;
static const float IDLE_CORRECTION_RATE_ALPHA = 0.0005;


MotorTask::MotorTask(const uint8_t task_core) : Task("Motor", 1200, 1, task_core) {
MotorTask::MotorTask(const uint8_t task_core) : Task("Motor", 2048, 1, task_core) {
queue_ = xQueueCreate(5, sizeof(Command));
assert(queue_ != NULL);
}
Expand Down

0 comments on commit e35319a

Please sign in to comment.