瀏覽代碼

Increase motor task stack

Avoid accidental stack overflows from small stack.

Updates #37
Updates #50
Scott Bezek 3 年之前
父節點
當前提交
e35319af6d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      firmware/src/motor_task.cpp

+ 1 - 1
firmware/src/motor_task.cpp

@@ -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);
 }