-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(sensors): Self baselining during sensor moves #786
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
70e8734
Use logic or instead of hardcoded enums
ryanthecoder d6c1372
when filling the bufffer auto baseline after the first 10
ryanthecoder c00db25
the new method that lets us increase senstivity uncovered an issue wi…
ryanthecoder 4e17786
few tweaks to the way this works
ryanthecoder d44cfa7
only compute the first 10 elements to self-baselien
ryanthecoder ac0c76e
don't immediatly turn of the recording when move completes
ryanthecoder 095fc71
save response pressure
ryanthecoder fb63bf4
fix the pressure leveling
ryanthecoder 7b0e300
rebase fixups
ryanthecoder 920b861
fix the hardware delay hack and get rid of another instance of it
ryanthecoder 544d9c0
send ack after sending buffer
ryanthecoder 6c30b6e
fixes to the circular buffer
ryanthecoder 372383b
don't need this and can cause the process to choke
ryanthecoder 4b7b24d
send the can messages faster
ryanthecoder 994d6ef
format
ryanthecoder 92bc679
make the moving baseline log clearer
ryanthecoder 0c0e09b
use the real world sensor speed
ryanthecoder 5ba41c1
change auto baseline slightly to ignore the first N samples
ryanthecoder bbb5df4
add a new sensor sync value
ryanthecoder 3109317
don't trigger before autobaseline is finished
ryanthecoder 7a26107
add new binding type for sensors and use the auto-baselineing during …
ryanthecoder 787b983
forgot to change an old reference
ryanthecoder fdd6637
format lint
ryanthecoder 5a60de6
preserve old behavior
ryanthecoder ecd943b
reduce the complexity in the handle function to satisfy lint
ryanthecoder a9cce7b
format
ryanthecoder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this overlap with #785 ?