nechaus
100 kW
Trying think what it would be.
get back to you
get back to you
that's a major problem. finding out what to remove and what to change to your demands, as many of the parameters (especially those that are new from b7) are still unknown to me and i'm not sure if they could cause issues.nechaus said:izeman
Is the 2.3b7 firmware already preconfigured when you open it up in arduino?
ok. thanks for confirmation. that's how it is with 2.3 rel.Cycle time should not go past 3000..
sure. maybe you have the time to look through it. one should be able to identify the config part that causes high cpu load (i guess this is what cylce time is equivalent to)Maybe you could post the code here your using?
i'm sorry. i didn't check that. i just attached the file as is. maybe the forum converted that somehow. shall i resend it?nechaus said:im having trouble reading it easily.. all the text is kinda everywhere
#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
/* This is the speed of the serial interfaces */
#define SERIAL0_COM_SPEED 115200 // BT
#define SERIAL1_COM_SPEED 115200
#define SERIAL2_COM_SPEED 57600 // GPS
#define SERIAL3_COM_SPEED 9600 // Telemetry FRSKY
//#define ITG3200_LPF_256HZ // This is the default setting, no need to uncomment, just for reference
//#define ITG3200_LPF_188HZ
//#define ITG3200_LPF_98HZ
//#define ITG3200_LPF_42HZ
//#define ITG3200_LPF_20HZ
//#define ITG3200_LPF_10HZ // Use this only in extreme cases, rather change motors and/or props
/* MPU6050 Low pass filter setting.
IMPORTANT! Change low pass filter setting changes PID behaviour, so retune your PID's after changing LPF.*/
//#define MPU6050_LPF_256HZ // This is the default setting, no need to uncomment, just for reference
//#define MPU6050_LPF_188HZ
.....
i will try that. this should be a good idea, as i have the copter YAW all the time a bit when using the throttle. i thought i had to trim that but found out that it's me moving the throttle stick no 100% straight.I personally enable this
/* introduce a deadband around the stick center
Must be greater than zero, comment if you dont want a deadband on roll, pitch and yaw */
#define DEADBAND 6
/*********************** Common for Heli & Airplane ***********************/
/* Governor: attempts to maintain rpm through pitch and voltage changes
* predictive approach: observe input signals and voltage and guess appropriate corrections.
* (the throttle curve must leave room for the governor, so 0-50-75-80-80 is ok, 0-50-95-100-100 is _not_ ok.
* Can be toggled via aux switch.
*/
//#define GOVERNOR_P 7 // (*) proportional factor. Higher value -> higher throttle increase. Must be >=1; 0 = turn off
//#define GOVERNOR_D 4 // (*) decay timing. Higher value -> takes longer to return throttle to normal. Must be >=1;
//#define VOLTAGEDROP_COMPENSATION // voltage impact correction
/*********************** Heli ***********************/
/* Channel to control CollectivePitch */
#define COLLECTIVE_PITCH THROTTLE
/* Limit the range of Collective Pitch. 100% is Full Range each way and position for Zero Pitch */
#define COLLECTIVE_RANGE { 80, 0, 80 }// {Min%, ZeroPitch offset from 1500, Max%}.
#define YAWMOTOR 0 // If a motor is used as YAW Set to 1 else set to 0.
/* Servo mixing for heli 120
{Coll,Nick,Roll} */
#define SERVO_NICK { +10, -10, 0 }
#define SERVO_LEFT { +10, +5, +10 }
#define SERVO_RIGHT { +10, +5, -10 }
/* Limit Maximum controll for Roll & Nick in 0-100% */
#define CONTROL_RANGE { 100, 100 } // { ROLL,PITCH }
/* use servo code to drive the throttle output. You want this for analog servo driving the throttle on IC engines.
if inactive, throttle output will be treated as a motor output, so it can drive an ESC */
//#define HELI_USE_SERVO_FOR_THROTTLE