change default brc pin

This commit is contained in:
legop3
2025-12-01 21:19:47 -05:00
parent 9be4a4e180
commit fb76ecd512
6 changed files with 4 additions and 4 deletions
Vendored
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -42,7 +42,7 @@ run_pipeline() {
-ar "${AUDIO_RATE}" \ -ar "${AUDIO_RATE}" \
-ac "${AUDIO_CHANNELS}" \ -ac "${AUDIO_CHANNELS}" \
-i <(arecord -D "${AUDIO_DEVICE}" -f S32_LE -c "${AUDIO_CHANNELS}" -r "${AUDIO_RATE}" -B 65536 -F 2048 -q -t raw) \ -i <(arecord -D "${AUDIO_DEVICE}" -f S32_LE -c "${AUDIO_CHANNELS}" -r "${AUDIO_RATE}" -B 65536 -F 2048 -q -t raw) \
-af "aresample=16000,pan=mono|c0=0.5*FL+0.5*FR,volume=12dB" \ -af "aresample=16000,pan=mono|c0=0.5*FL+0.5*FR,volume=20dB" \
-c:a libopus \ -c:a libopus \
-b:a 24000 \ -b:a 24000 \
-ar:a 16000 \ -ar:a 16000 \
+1 -1
View File
@@ -115,7 +115,7 @@ func LoadConfig(path string) (*Config, error) {
cfg := Config{ cfg := Config{
MaxWheelMMs: 500, MaxWheelMMs: 500,
BRC: BRCConfig{ BRC: BRCConfig{
GPIOPin: -1, GPIOPin: 4,
GPIOChip: "gpiochip0", GPIOChip: "gpiochip0",
PulseEvery: Duration{ PulseEvery: Duration{
Duration: time.Minute, Duration: time.Minute,
+1 -1
View File
@@ -5,7 +5,7 @@ serial:
device: /dev/ttyAMA0 device: /dev/ttyAMA0
baud: 115200 baud: 115200
brc: brc:
gpioPin: 17 gpioPin: 4
gpioChip: gpiochip0 gpioChip: gpiochip0
pulseEvery: 1m pulseEvery: 1m
pulseWidth: 1s pulseWidth: 1s
+1 -1
View File
@@ -5,7 +5,7 @@ serial:
device: /dev/ttyAMA0 device: /dev/ttyAMA0
baud: 115200 baud: 115200
brc: brc:
gpioPin: 17 gpioPin: 4
gpioChip: gpiochip0 gpioChip: gpiochip0
pulseEvery: 1m pulseEvery: 1m
pulseWidth: 1s pulseWidth: 1s