Use default recommended chip-select pin (GPIO5) for SPI

Update link to the schematics #3 to the most recent version
This commit is contained in:
Oleg Kalachev 2024-02-24 15:28:41 +03:00
parent ab2f99ab59
commit 1c9b10a674
2 changed files with 2 additions and 3 deletions

View File

@ -38,7 +38,7 @@ Simulation in Gazebo using a plugin that runs original Arduino code is implement
<img src="docs/img/schematics.svg" width=800 alt="Flix schematics"> <img src="docs/img/schematics.svg" width=800 alt="Flix schematics">
You can also check a user contributed [variant of complete circuit diagram](https://github.com/okalachev/flix/issues/3#issue-2066079898) of the drone. You can also check a user contributed [variant of complete circuit diagram](https://miro.com/app/board/uXjVN-dTjoo=/) of the drone.
*\* — SBUS inverter is not needed as ESP32 supports [software pin inversion](https://github.com/bolderflight/sbus#inverted-serial).* *\* — SBUS inverter is not needed as ESP32 supports [software pin inversion](https://github.com/bolderflight/sbus#inverted-serial).*

View File

@ -6,10 +6,9 @@
#include <SPI.h> #include <SPI.h>
#include <MPU9250.h> #include <MPU9250.h>
#define IMU_CS_PIN 4 // chip-select pin for IMU SPI connection
#define LOAD_GYRO_CAL false #define LOAD_GYRO_CAL false
MPU9250 IMU(SPI, IMU_CS_PIN); MPU9250 IMU(SPI, SS);
void setupIMU() { void setupIMU() {
Serial.println("Setup IMU, stand still"); Serial.println("Setup IMU, stand still");