mirror of
https://github.com/scottbez1/smartknob.git
synced 2025-09-26 23:09:27 +08:00
Increase motor task stack
Avoid accidental stack overflows from small stack. Updates #37 Updates #50
This commit is contained in:
parent
21031d13af
commit
e35319af6d
@ -16,7 +16,7 @@ static const float IDLE_CORRECTION_MAX_ANGLE_RAD = 5 * PI / 180;
|
|||||||
static const float IDLE_CORRECTION_RATE_ALPHA = 0.0005;
|
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));
|
queue_ = xQueueCreate(5, sizeof(Command));
|
||||||
assert(queue_ != NULL);
|
assert(queue_ != NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user