Page 1 of 1

Cleanflight Issues.......or is it me??

Posted: Fri Mar 27, 2015 9:23 pm
by Graham Lawrie
Well, to cut an extremely long story short, i have played with Cleanflight for two days!!

I saved most settings that worked. I have been researching the pants off it, to the point that i totally confused myself and had to start from scratch........several times:(

At one point it lost the CLI completely and another it stopped saving the mode settings. Loads more issues, to the point i left it for an hours break and a cuppa:)

I eventually re-loaded an early save and got it back and started again. I think my initial problem started when tuning on the laptop and the quad battery ran low and the motors started alarming for low power.

I am now at the stage that i have lost confidence in the ability to use it for FPV until i get it sorted.

Re: Cleanflight Issues.......or is it me??

Posted: Fri Mar 27, 2015 10:03 pm
by Stambo
Maybe it's time for a clean reload of CF, in other words reflash the board with full chip erase and start from total scratch.
If you want I can post my txt file of what I do, will be slightly different than yours but enough to get you flying again.

Here you go, my initial setup

Setup
Calibrate Accelerometer

Config
Enable MOTOR_STOP
Board alignment Yaw-90 (For rotating USB to the right)
Receiver Mode RX-PPM (For D4R-II)
Warning Voltage 3.4
Telemetry Enable

CLI
set looptime=2500
set auto_disarm_delay = 10 (Auto disarm in 10 seconds instead of 5)
set acc_lpf_factor = 100 (Accelerometer low pass filter)

Hook up batt
Check Receiver
Set modes
Set adjustments

Then start PID Tuning

PID controller 1
Self level P down to 6 for Angle mode
Roll and pitch rate 0.25
Yaw rate 0.40
TPA 0.20

Re: Cleanflight Issues.......or is it me??

Posted: Fri Mar 27, 2015 10:51 pm
by Graham Lawrie
Thanks for that Stambo:) I already tried a reflash but it would not let me so i loaded up one i saved that worked and i got the CLI back working.
I have never set acc_lpf factor, what does that do?

I have a two position switch on DX6i. How do i set PID to alter between modes?

Re: Cleanflight Issues.......or is it me??

Posted: Sat Mar 28, 2015 7:59 am
by Stambo
acc_lpf factor is the low pass filter for the accelerometers.
It basically filters a lot of the vibrations seen by the accelerometers to stop them being used for calculating flight parameters.
Default is set to 4 but that was for the old 8 bit boards.
The extra processing power of a 32 bit board allows you to set that much higher.

For the switch, do you mean to be able to change between angle and acro?

Re: Cleanflight Issues.......or is it me??

Posted: Sat Mar 28, 2015 9:27 am
by Graham Lawrie
I have a DX6i which has only a 2 position switch so can only set up 2 modes. I have angle set in the up position. Down i have not set up a mode so i assume that is me in rate/acro mode?

So my question is how do the PID settings change when i flip the switch? Is it done on PID 1/2 do i put two different PID settings in profiles?

Re: Cleanflight Issues.......or is it me??

Posted: Sat Mar 28, 2015 10:16 am
by Stambo
Graham Lawrie wrote:I have a DX6i which has only a 2 position switch so can only set up 2 modes. I have angle set in the up position. Down i have not set up a mode so i assume that is me in rate/acro mode?
Correct. :)
Graham Lawrie wrote:So my question is how do the PID settings change when i flip the switch? Is it done on PID 1/2 do i put two different PID settings in profiles?
The only difference is that angle mode uses the level P to adjust the strength of correction so you are flying on the same set of PIDs.
What PID controller are you using?
If it is flying ok in angle, it should fly ok in acro, you may have to adjust your I up a bit to get it to hold where you put it.
When you get to flying acro you will know what I mean.

Re: Cleanflight Issues.......or is it me??

Posted: Sat Mar 28, 2015 10:22 am
by Graham Lawrie
Thanks Stambo:)Controller 1:)