BrainFPV / TauLabs

http://www.brainfpv.com
Other
27 stars 9 forks source link

Configurable MPU Rate re: OneShot125 #8

Closed fujin closed 9 years ago

fujin commented 9 years ago

Hi @BrainFPV

I'd like to see if it is possible to get a configurable MPU rate, per the 9502's little brother. It seems like they have some auto-divisor code to get the rate working in different LPF settings.

I checked over and it looks like we are hard coded at 500hz.

The reason I ask is in the OneShot branch, @ernieift mentions a higher MPU rate, having tested up to 2khz! I believe a higher MPU rate will allow for more accurate oneshots, although this is a very rudimentary understanding.

Thoughts?

cheers,

@fujin

fujin commented 9 years ago

see https://github.com/fujin/TauLabs/tree/brain-oneshot for a brain branch with oneshot merged as well.

fujin commented 9 years ago

I read some notes on the forums regarding something called ChibiOS for the OSD allowing the MPU to run at a higher rate, so consider closing/linking this issue to that. I have no idea what ChibiOS is but just tracking it here for posterity.

BrainFPV commented 9 years ago

@fujin thanks. Great flying in the OneShot video btw :). I will start looing into ChibiOS after the current release, it shouldnt't be terribly hard to port the Brain specific code over.

BrainFPV commented 9 years ago

This feature is now available in the brain_chibios branch. The plan is to switch to ChibiOS before the next release.

Closing this.