So, wollte grad mal den Sketch neu auf mein Quad packen und steh aufm Schlauch.
Pro Mini mit FreeImu 0.4.3 Sketch Version 2.1
Frage: I2C Bus mit 100kHz oder 400kHz? Hab 400 im Kop, bin aber nich mehr sicher...
Pullups muss ich ja ab 2.1 deaktivieren...
Jemand ne fixe Antwort? Sonst such ich mir das mal wieder zusammen
Sketch sieht zur zeit so aus:
/*************************************************************************************************/
/***************** ***************/
/**************** SECTION 1 - BASIC SETUP *******/
/***************** ***************/
/*************************************************************************************************/
/************************** The type of multicopter ****************************/
//#define GIMBAL
//#define BI
//#define TRI
//#define QUADP
#define QUADX
//#define Y4
//#define Y6
//#define HEX6
//#define HEX6X
//#define OCTOX8
//#define OCTOFLATP
//#define OCTOFLATX
//#define FLYING_WING
//#define VTAIL4
//#define AIRPLANE
//#define SINGLECOPTER
//#define DUALCOPTER
//#define HELI_120_CCPM
//#define HELI_90_DEG
/**************************** Motor minthrottle *******************************/
/* Set the minimum throttle command sent to the ESC (Electronic Speed Controller)
This is the minimum value that allow motors to run at a idle speed */
//#define MINTHROTTLE 1300 // for Turnigy Plush ESCs 10A
//#define MINTHROTTLE 1120 // for Super Simple ESCs 10A
#define MINTHROTTLE 1064 // special ESC (simonk)
//#define MINTHROTTLE 1150
/**************************** Motor maxthrottle *******************************/
/* this is the maximum value for the ESCs at full power, this value can be increased up to 2000 */
#define MAXTHROTTLE 1850
/**************************** Mincommand *******************************/
/* this is the value for the ESCs when they are not armed
in some cases, this value must be lowered down to 900 for some specific ESCs, otherwise they failed to initiate */
#define MINCOMMAND 1000
/********************************** I2C speed ************************************/
//#define I2C_SPEED 100000L //100kHz normal mode, this value must be used for a genuine WMP
#define I2C_SPEED 400000L //400kHz fast mode, it works only with some WMP clones
/*************************** Internal i2c Pullups ********************************/
/* enable internal I2C pull ups (in most cases it is better to use external pullups) */
//#define INTERNAL_I2C_PULLUPS
/**************************************************************************************/
/***************** boards and sensor definitions ******************/
/**************************************************************************************/
/*************************** Combined IMU Boards ********************************/
/* if you use a specific sensor board:
please submit any correction to this list.
Note from Alex: I only own some boards, for other boards, I'm not sure, the info was gathered via rc forums, be cautious */
//#define FFIMUv1 // first 9DOF+baro board from Jussi, with HMC5843 <- confirmed by Alex
//#define FFIMUv2 // second version of 9DOF+baro board from Jussi, with HMC5883 <- confirmed by Alex
//#define FREEIMUv1 // v0.1 & v0.2 & v0.3 version of 9DOF board from Fabio
//#define FREEIMUv03 // FreeIMU v0.3 and v0.3.1
//#define FREEIMUv035 // FreeIMU v0.3.5 no baro
//#define FREEIMUv035_MS // FreeIMU v0.3.5_MS <- confirmed by Alex
//#define FREEIMUv035_BMP // FreeIMU v0.3.5_BMP
//#define FREEIMUv04 // FreeIMU v0.4 with MPU6050, HMC5883L, MS561101BA <- confirmed by Alex
#define FREEIMUv043 // same as FREEIMUv04 with final MPU6050 (with the right ACC scale)
EDIT: Hmmm... Sketch hochgeladen, GUI angeschmissen, gleiches Problem wie vorher.
PID Werte werden 1a ausgelesen.
ABER: Alle Sensorkennlinien laufen zwar auf null... jedoch läuft Z auf 512 statt auf 200 und wenn ich den Copter bewege, ändert sich rein garnichts... keine Ausschläge.
Roll, Nick ist auch völlig unbeeindruckt von Bewegungen und ich hab immernoch -31800 I2C Fehler da stehen.... Cycletime liegt bei rund 3000.
Entweder spinnt der FTDI Adapter, oder ich hab mir irgendwas beim letzten Absturz gehimmelt...
Oder hat sonst jemand noch ne Idee?