mirror of
https://github.com/okalachev/flix.git
synced 2025-07-27 09:39:33 +00:00
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:
parent
ab2f99ab59
commit
1c9b10a674
@ -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).*
|
||||||
|
|
||||||
|
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user