Explorar o código

Increase motor task stack

Avoid accidental stack overflows from small stack.

Updates #37
Updates #50
Scott Bezek %!s(int64=3) %!d(string=hai) anos
pai
achega
e35319af6d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
 }