mirror of
https://github.com/okalachev/flix.git
synced 2026-09-06 00:10:58 +00:00
34 lines
689 B
C++
34 lines
689 B
C++
// Copyright (c) 2026 Oleg Kalachev <okalachev@gmail.com>
|
|
// Repository: https://github.com/okalachev/flix
|
|
|
|
// Parameter defaults
|
|
|
|
#pragma once
|
|
|
|
void setDefaults() {
|
|
// Set defaults here
|
|
|
|
#if defined(CONFIG_IDF_TARGET_ESP32S3) || defined(CONFIG_IDF_TARGET_ESP32C3)
|
|
pwmFrequency = 38000;
|
|
#endif
|
|
|
|
#ifdef CONFIG_IDF_TARGET_ESP32
|
|
// classic esp32 configuration
|
|
motorPins[MOT_RL] = 12;
|
|
motorPins[MOT_RR] = 13;
|
|
motorPins[MOT_FR] = 14;
|
|
motorPins[MOT_FL] = 15;
|
|
#endif
|
|
|
|
#ifdef FLIX2
|
|
imuModel = 4; // ICM-40609-D
|
|
imuIntPin = 10;
|
|
imuCsPin = 14;
|
|
voltagePin = 3;
|
|
motorPins[MOT_RL] = 41;
|
|
motorPins[MOT_RR] = 7;
|
|
motorPins[MOT_FR] = 18;
|
|
motorPins[MOT_FL] = 38;
|
|
#endif
|
|
}
|