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

Transmitters, receivers, flight stability control systems, gps waypoint systems, etc.

Moderator: Moderators

Post Reply
User avatar
Graham Lawrie
Moderator
Moderator
Posts: 5049
Joined: Thu Nov 06, 2014 7:14 pm
Location: Kinlochleven, Scotland
Contact:

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

Post 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.
Align 600
Align 550
Align 450 Pro V2 AR7200BX
Align150
Mini-Quad 250/Emax NightHawk /Fossil V2/TBS Disco/Volt
DX6i
MHS Brain/Spartan Vortex/AR7200BX /Microbeast Plus HD
Blade mqx
Scorpion BUG
Fatshark Predator V2 & Mobius




CITIZEN # 521
User avatar
Stambo
Member
Member
Posts: 1349
Joined: Thu Nov 20, 2014 7:13 pm
Location: Whangarei New Zealand

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

Post 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
RCX 250 Minquad FPV addiction
500 X quad FPV/AP platform
450 X quad set up for night flight
Multiple WLToys V911, V949, V959
Taranis, Turnigy 9X
Fatshark Predator, Immersion 5800 Duo
Trex 500 Esky Belt CP V2
User avatar
Graham Lawrie
Moderator
Moderator
Posts: 5049
Joined: Thu Nov 06, 2014 7:14 pm
Location: Kinlochleven, Scotland
Contact:

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

Post 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?
Align 600
Align 550
Align 450 Pro V2 AR7200BX
Align150
Mini-Quad 250/Emax NightHawk /Fossil V2/TBS Disco/Volt
DX6i
MHS Brain/Spartan Vortex/AR7200BX /Microbeast Plus HD
Blade mqx
Scorpion BUG
Fatshark Predator V2 & Mobius




CITIZEN # 521
User avatar
Stambo
Member
Member
Posts: 1349
Joined: Thu Nov 20, 2014 7:13 pm
Location: Whangarei New Zealand

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

Post 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?
RCX 250 Minquad FPV addiction
500 X quad FPV/AP platform
450 X quad set up for night flight
Multiple WLToys V911, V949, V959
Taranis, Turnigy 9X
Fatshark Predator, Immersion 5800 Duo
Trex 500 Esky Belt CP V2
User avatar
Graham Lawrie
Moderator
Moderator
Posts: 5049
Joined: Thu Nov 06, 2014 7:14 pm
Location: Kinlochleven, Scotland
Contact:

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

Post 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?
Align 600
Align 550
Align 450 Pro V2 AR7200BX
Align150
Mini-Quad 250/Emax NightHawk /Fossil V2/TBS Disco/Volt
DX6i
MHS Brain/Spartan Vortex/AR7200BX /Microbeast Plus HD
Blade mqx
Scorpion BUG
Fatshark Predator V2 & Mobius




CITIZEN # 521
User avatar
Stambo
Member
Member
Posts: 1349
Joined: Thu Nov 20, 2014 7:13 pm
Location: Whangarei New Zealand

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

Post 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.
RCX 250 Minquad FPV addiction
500 X quad FPV/AP platform
450 X quad set up for night flight
Multiple WLToys V911, V949, V959
Taranis, Turnigy 9X
Fatshark Predator, Immersion 5800 Duo
Trex 500 Esky Belt CP V2
User avatar
Graham Lawrie
Moderator
Moderator
Posts: 5049
Joined: Thu Nov 06, 2014 7:14 pm
Location: Kinlochleven, Scotland
Contact:

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

Post by Graham Lawrie »

Thanks Stambo:)Controller 1:)
Align 600
Align 550
Align 450 Pro V2 AR7200BX
Align150
Mini-Quad 250/Emax NightHawk /Fossil V2/TBS Disco/Volt
DX6i
MHS Brain/Spartan Vortex/AR7200BX /Microbeast Plus HD
Blade mqx
Scorpion BUG
Fatshark Predator V2 & Mobius




CITIZEN # 521
Post Reply

Return to “Control Electronics”