mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
Reliability fixes for wired comms
This commit is contained in:
@@ -62,8 +62,10 @@ DCMotorActuator::DCMotorActuator() {
|
||||
this->m_integral = 0;
|
||||
this->m_last_error = 0;
|
||||
|
||||
xTaskCreate(reinterpret_cast<TaskFunction_t>(pid_task), "pid_task", 3072, this, 1,
|
||||
&this->m_pid_task);
|
||||
// Pin the PID task to Core 1 so it doesn't compete with the RMT driver,
|
||||
// which runs its ISR and internal tasks on Core 0.
|
||||
xTaskCreatePinnedToCore(reinterpret_cast<TaskFunction_t>(pid_task), "pid_task", 3072, this, 1,
|
||||
&this->m_pid_task, 1);
|
||||
}
|
||||
|
||||
DCMotorActuator::~DCMotorActuator() {
|
||||
|
||||
Reference in New Issue
Block a user