mirror of
https://gitlab.waag.org/make/fablab/interns/2025/sam.git
synced 2025-08-05 13:06:56 +00:00
docs + first potmeter program
This commit is contained in:
@@ -220,12 +220,12 @@ const int ch5Pin = 21; // gear (throttle cut)
|
||||
const int ch6Pin = 22; // aux1 (free aux channel)
|
||||
const int PPM_Pin = 23;
|
||||
// OneShot125 ESC pin outputs:
|
||||
const int m1Pin = 0;
|
||||
const int m2Pin = 1;
|
||||
const int m3Pin = 2;
|
||||
const int m4Pin = 3;
|
||||
const int m5Pin = 4;
|
||||
const int m6Pin = 5;
|
||||
const int m1Pin = D0;
|
||||
const int m2Pin = D1;
|
||||
const int m3Pin = D2;
|
||||
const int m4Pin = D3;
|
||||
const int m5Pin = D4;
|
||||
const int m6Pin = D5;
|
||||
// PWM servo or ESC outputs:
|
||||
const int servo1Pin = 6;
|
||||
const int servo2Pin = 7;
|
||||
@@ -371,7 +371,7 @@ void setup() {
|
||||
delay(5);
|
||||
|
||||
// Initialize radio communication
|
||||
radioSetup();
|
||||
// radioSetup(); //commented out because I'm making my own controller
|
||||
|
||||
// Set radio channels to default (safe) values before entering main loop
|
||||
channel_1_pwm = channel_1_fs;
|
||||
@@ -602,7 +602,7 @@ void getIMUdata() {
|
||||
#elif defined USE_MPU9250_SPI
|
||||
mpu9250.getMotion9(&AcX, &AcY, &AcZ, &GyX, &GyY, &GyZ, &MgX, &MgY, &MgZ);
|
||||
#elif defined USE_BNO085_I2C
|
||||
//bno magnetometer
|
||||
//BNO magnetometer
|
||||
MgX = myIMU.getMagX();
|
||||
MgY = myIMU.getMagY();
|
||||
MgZ = myIMU.getMagZ();
|
||||
|
Reference in New Issue
Block a user