Skip to content

Commit 0215d7e

Browse files
committed
update knock to ADC3/PA3, displacement 1.8L
1 parent bcc7e35 commit 0215d7e

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

default_tune.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "pch.h"
22

33
void boardTuneDefaults() {
4-
engineConfiguration->displacement = 1.6;
4+
engineConfiguration->displacement = 1.8;
55
}

knock_config.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
#pragma once
66

7-
// Knock is on ADC1 (PA6 is available on ADC1)
8-
#define KNOCK_ADC ADCD2
7+
// Knock is on ADC3
8+
#define KNOCK_ADC ADCD3
99

10-
// knock 1 - pin PA6
11-
#define KNOCK_ADC_CH1 ADC_CHANNEL_IN6
12-
#define KNOCK_PIN_CH1 Gpio::A6
10+
// knock 1 - pin PA3
11+
#define KNOCK_ADC_CH1 ADC_CHANNEL_IN3
12+
#define KNOCK_PIN_CH1 Gpio::A3
1313

1414
// Sample rate & time - depends on the exact MCU
1515
#define KNOCK_SAMPLE_TIME ADC_SAMPLE_84

0 commit comments

Comments
 (0)