lucas

  • **
  • 67
Gyro Sync and Low Latency?
« on: December 28, 2015, 09:34:44 pm »
I´ve read the threads of Betaflight and Raceflight over at RCG and seems like users are really pleased with how the Firmware behaves. 

It seems to me like the biggest features of the FWs are Gyro Sync and low latency.

Are those things hard to code into the LibrePilot FW?

« Last Edit: February 22, 2016, 02:19:04 am by lucas »

liftbag

  • *****
  • 215
    • LibrePilot
Re: what´s the deal with Betaflight and Raceflight?
« Reply #1 on: December 29, 2015, 12:08:22 am »

I´ve read the threads of Betaflight and Raceflight over at RCG and seems like users are really pleased with how the Firmware behaves. 

It seems to me like the biggest features of the FWs are Gyro Sync and low latency.

Are those things hard to code into the LibrePilot FW?
Don't know how hard it can be, but developers are working to improve latency and gyro rate ;)

lucas

  • **
  • 67
Re: what´s the deal with Betaflight and Raceflight?
« Reply #2 on: December 29, 2015, 01:59:13 am »
Thanks liftbag.  Those are very good news

xfce

  • **
  • 91
Re: what´s the deal with Betaflight and Raceflight?
« Reply #3 on: December 29, 2015, 02:04:48 am »
I think maybe not overcome.
LP now use OS in the firmware, Betaflight and Raceflight use while-loop structure, and can simply adjust the interrupt used for Gyro to improve performance. 
Am I right, developers?

Re: what´s the deal with Betaflight and Raceflight?
« Reply #4 on: December 29, 2015, 08:32:37 am »
Yes.

These other firmwares use straight line code.  There is no delay between one step and the next step
:begin
 - wait for next gyro data at gyro rate
 - read gyros
 - calculate outputs
 - write ESC (at gyro rate)
 - goto begin

LP uses RTOS tasks that automatically determine which step needs to run next and wakes up that step.  This allows an elegant way to handle ESC output modes that don't run at same rate as gyro.
 - wake up and read gyros at gyro rate and write gyro queue
 - wake up when gyro queue has data and calculate outputs
 - wake up when ESC is ready for data and write ESC (may or may not be synchronized to "calculate outputs")

RTOS can take a small amount of time to see which task needs to wake up next and in preventing data from being modified while it is being used.  We are working to minimize these delays.

Re: what´s the deal with Betaflight and Raceflight?
« Reply #5 on: December 29, 2015, 11:33:06 am »
The smoothness of Betaflight is due to this? I'm trying Betaflight on cc3d on my 250racer. Stock settings stock pid except 0,6 for rates yaw pitch roll.
My machine now flies incredibly smoother then LP but in LP i did the optune for PID so this is incredible!

The rc expo in BF is something I was not able to replicate in LP. Gives you so much smoothness without compromising the control of the multicopter while in LP I feel I loose the control.

Furthermore the air mode gives you control when you just cut the throttle to enter in the gate if you are a bit too high. Then when I suddenly apply the throttle it keeps going like it's on rails without strange behaviour due to not tuned pids.
« Last Edit: December 29, 2015, 11:42:15 am by matrixFLYER »

mazevx

  • ***
  • 151
  • Still Learning ...everday
Re: what´s the deal with Betaflight and Raceflight?
« Reply #6 on: December 29, 2015, 09:33:49 pm »
These differences are the reason why more than one flightcontrols and Softwares existing...
Im flying the small racer with graupner gr18c FC, 8"prop cruiser with Librepilot and the next will be the big camera copter also flying Librepilot.
Maybe betaflight is the better choice for a racer or some special style...

Re: what´s the deal with Betaflight and Raceflight?
« Reply #7 on: December 30, 2015, 12:23:39 pm »
It's pretty hard to subjectively compare relative performance of firmwares due to the huge variabilty in configurations and personal preferences. Flight  performance may feel better to you,  but someone else flying the same model will think it's poor.

For this reason,  better to just avoid such comparisons. If you have something you like,  then fly it.

Lo-res

  • *
  • 11
Re: what´s the deal with Betaflight and Raceflight?
« Reply #8 on: December 30, 2015, 06:42:17 pm »
Is cruise control active when inverted?

Re: what´s the deal with Betaflight and Raceflight?
« Reply #9 on: January 02, 2016, 09:43:29 pm »
The default settings for CruiseControl have the motors reduce to 5% when inverted.  This is to keep the motors spinning (quicker reaction than starting from stopped) and allow for continuing to roll to complete the flip.

FYI, Rattitude is difficult to keep inverted.  If you hold about 75% roll stick it will be almost inverted.  Some place between 75 and 85 it will go slightly past perfectly inverted and it will roll on past at full speed towards level.  If you hold it there it will continue to flip as long as you hold it.

The combination of Rattitude and CruiseControl is very nice for learning to do flips.

Re: what´s the deal with Betaflight and Raceflight?
« Reply #10 on: January 16, 2016, 05:43:03 am »
The smoothness of Betaflight is due to this? I'm trying Betaflight on cc3d on my 250racer. Stock settings stock pid except 0,6 for rates yaw pitch roll.
My machine now flies incredibly smoother then LP but in LP i did the optune for PID so this is incredible!

Do you have any videos/ links / articles you can send me? i'm having trouble getting my cc3d/ betaflight copter in the air.  successfully flashed betaflight with betaflight_CC3D_OPBL but now the copter won't fly. 

Problems
1- I cannot access the ESC's via blheli when my hardwire connection is through the CC3D.  I'm told this should be possible through betaflight.  have you tried/ succeeded with this?

2- motors seem to not spin up properly, they just twitch for a while even at mid throttle. then at random they will spin up about 30 seconds later.  I have done a basic esc reset and calibration but it didn't help.

3- The thing won't fly at all.  i try to take up but it want to tip over immediately in both rate mode and horizon mode.

Notes
I've flashed the betaflight firmware .bin file through OpenPilot.  i'm wondering if i need to flash the permanent .hex file to resolve my issues?

I just learned about librepilot and i'm thinking about using it due to all the isues i'm having with betaflight.  But from all the great things i hear about betaflight and all the response gains you get at low throttle, i really would like to have that available!

My experience level is 6 months with quadcopters, 2 years with collective pitch electric helis, 4 years with nitro truggys.


Re: what´s the deal with Betaflight and Raceflight?
« Reply #11 on: January 27, 2016, 08:15:44 pm »
quiljw01

ive had the same result with the beta flight , race flight and clean flight,

ill have one motor that will go crazy and the others will just twich, used bl heli suite to program esc's
ill even have smooth start up all the way to full, with the motor slider in beta flight ect , but when i arm it
and try to spin up motors one always goes crazy , if i re flash again and repeat procedure it will be a
different motor that goes crazy tried every mode,  went back to libra pilot everything flys great ,
tried on an  cc3d atom and regular

im just trying to figure out all the modes,  low level , rate trainer, ect

nuggetz

  • *
  • 32
Re: what´s the deal with Betaflight and Raceflight?
« Reply #12 on: February 09, 2016, 04:22:41 am »
So whats the roadmap for LP? My first ever brushless quad (Eachine Racer 250) came with a CC3D. I really wanted to play with LED support and Blackbox so I ponied up for a Dodo to slap into it. However, I find myself missing CC3D and LP. When it worked, I absolutely loved the GCS interface. I like the approach of the larger sliders for noobs which directly translate into PID adjustments on the expert pages, etc. Pretty much everything had floating tool tips and I understood what I was reading day one.

Anyway, what sort of Telemetry can we get out of a CC3D? I was using a sat reciever when I first got my quad and switched over to CF and at the same time a proper reciever (X4R) so I have no idea what sort of metrics we can read.

With all the tuning issues I've been having on the CF boards I sorta miss the performance I got day one with my CC3D. I'll probably get a Blackout frame and build that up with the Dodo and put my Eachine back to the way it was or get a Revo or something. I really enjoyed running the CC3D on it.  Anyway, what's on the horizon for LP? Whats the latest on CC3D hardware too?

Re: what´s the deal with Betaflight and Raceflight?
« Reply #13 on: February 21, 2016, 11:41:24 pm »
CC3D development is pretty much dead because nothing more will fit.
If some new developer wants to slim it down (already been done, so getting more is not easy) or modularize it somehow, that would be very welcome (provided it doesn't make a lot more work for adding to Revo etc.).  :)
Many users talk about wanting this or that for their CC3D, but the problem is that no one steps up.  :(

lucas

  • **
  • 67
Re: what´s the deal with Betaflight and Raceflight?
« Reply #14 on: February 22, 2016, 02:17:40 am »
I like my CC3Ds and appreciate what you did with 15.09.

But us users must understand that the CC3D is hindering development for the Revo and the Sparky2.  There must have been a lot of man hours invested in bringing support back to the CC3D and a lot more in trying to make any new change fit inside of it.

I for one would agree if the CC3D was left behind. 

If possible, it would be nice if the latest GCS that supported the CC3D could run side by side with the first GCS that doesn´t support it.

PS:  I changed the name of the thread