ButterFlight / butterflight

GNU General Public License v3.0
106 stars 26 forks source link

Systemconfig #71

Closed robert-b closed 6 years ago

robert-b commented 6 years ago

pid loop frequency is not settable for mpu-6000 fc's. default setup always remains after booting.

works with betaflight but not with butterflight.

ABLomas commented 6 years ago

Works for me on Omnibus F4 v1. What FC? Did you loaded defaults after flashing butterflight?

robert-b commented 6 years ago

i bought a realacc set with all components. that set did include an omnibusf4sd. which is no used for desktop flying.

i did load the defaults together with a binary from github making sure my changes do not interfere. for me it fails using the 10.2.0 configurator.

robert-b commented 6 years ago

now i see clearer. 8/2 is max possible setting allowed for the mpu-6000. what if you have an f7 - 8/8 is possible without question.

some sort of teaching what to use?

ABLomas commented 6 years ago

8K is max gyro rate on MPU6K, so 8/8 is possible (also something weird like 8/16 is possible on F4, but no sense to run pid loop faster than gyro readout). 8/8K runs on F4 omnibus without issues. Which exactly pid loop frequency is not settable?

robert-b commented 6 years ago

i can only select 8/2 as the max. 8/1 is possible - 8/8 not. regardless if f4 or f7.

which version of the config tool do you run?

ABLomas commented 6 years ago

10.2.0 Maybe you run too many features and CPU could not keep with it, etc? Try simple test - do "defaults" and just change looptime to 8/8. Should work.

robert-b commented 6 years ago

you explained what i did.

ABLomas commented 6 years ago

I think i know where your issue is. I took Omnibus F4 board, flashed with F4SD FW (no difference between boards, only output mappings). And yes, on defaults you cannot set PID loop higher than 2K, because ESC algo is set to "synced" by default and is set to ONESHOT125. So, if you want to run synced - you can't use oneshot at higher than 2K speeds. Solutions:

  1. use DSHOT - and you can select 8/8
  2. turn off synced ESC output mode - and you can select 8/8

IIRC this is even documented somewhere - def. not configurator/firmware issue.

robert-b commented 6 years ago

good point. i will close the issue as it works.

robert-b commented 6 years ago

https://github.com/robert-b/butterfly has some changes for the gyro and pid stuff ... the new slewratefilter is active for all gyros. for those hitting gates during a race ...