avoid aliasing (#2431)

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
This commit is contained in:
Matthew Kennedy 2021-03-07 14:32:04 -08:00 committed by GitHub
parent 38d0a25ffd
commit 0c0e495607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -112,7 +112,9 @@ void setProteusAnalogPwmTest(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
// The idle control pin is connected to the default TPS input, analog volt 2
engineConfiguration->idle.solenoidPin = GPIOG_4;
engineConfiguration->idle.solenoidFrequency = 5000;
// 5893hz is coprime with the analog sample rate, 500hz, so hopefully we get less aliasing
engineConfiguration->idle.solenoidFrequency = 5893;
// Test range is 20% to 80%
engineConfiguration->tpsMin = 200;