-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sensors): Self baselining during sensor moves (#786)
* Use logic or instead of hardcoded enums * when filling the bufffer auto baseline after the first 10 * the new method that lets us increase senstivity uncovered an issue with setting the sync line this way, it was turning off before the head node could detect it and stop * few tweaks to the way this works * only compute the first 10 elements to self-baselien * don't immediatly turn of the recording when move completes * save response pressure * fix the pressure leveling * rebase fixups * fix the hardware delay hack and get rid of another instance of it * send ack after sending buffer * fixes to the circular buffer * don't need this and can cause the process to choke * send the can messages faster * format * make the moving baseline log clearer * use the real world sensor speed * change auto baseline slightly to ignore the first N samples * add a new sensor sync value * don't trigger before autobaseline is finished * add new binding type for sensors and use the auto-baselineing during sensor moves * forgot to change an old reference * format lint * preserve old behavior * reduce the complexity in the handle function to satisfy lint * format
- Loading branch information
1 parent
ec1710d
commit 0fe1207
Showing
7 changed files
with
136 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
#pragma once | ||
// Not my favorite way to check this, but if we don't have access | ||
// to vTaskDelay during host compilation so just dummy the function | ||
|
||
#ifdef ENABLE_CROSS_ONLY_HEADERS | ||
#include "FreeRTOS.h" | ||
#endif | ||
|
||
template <typename T> | ||
requires std::is_integral_v<T> | ||
static void vtask_hardware_delay(T ticks) { | ||
#ifndef INC_TASK_H | ||
std::ignore = ticks; | ||
#else | ||
#ifdef ENABLE_CROSS_ONLY_HEADERS | ||
vTaskDelay(ticks); | ||
#else | ||
std::ignore = ticks; | ||
#endif | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters