⏱️ Updates the frequency of main control loop from 100 hz to 200
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ DRAM_ATTR Spot spot;
|
|||||||
void IRAM_ATTR SpotControlLoopEntry(void*) {
|
void IRAM_ATTR SpotControlLoopEntry(void*) {
|
||||||
ESP_LOGI("main", "Setup complete now runing tsk");
|
ESP_LOGI("main", "Setup complete now runing tsk");
|
||||||
TickType_t xLastWakeTime = xTaskGetTickCount();
|
TickType_t xLastWakeTime = xTaskGetTickCount();
|
||||||
const TickType_t xFrequency = 10 / portTICK_PERIOD_MS;
|
const TickType_t xFrequency = 5 / portTICK_PERIOD_MS;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
spot.readSensors();
|
spot.readSensors();
|
||||||
spot.planMotion();
|
spot.planMotion();
|
||||||
|
|||||||
Reference in New Issue
Block a user