EmuFlight icon indicating copy to clipboard operation
EmuFlight copied to clipboard

[feature request] BMI270 support

Open nerdCopter opened this issue 2 years ago • 10 comments

  • No support for BMI270
  • Been trying to get BMI270 code compiling for multiple weeks unsuccessfully :(

nerdCopter avatar Aug 31 '22 20:08 nerdCopter

i wonder if @yangyeah or @JulioCesarMatias is interested in this task? i plan to keep trying, but seems more complex than expected and doesn't look good for me.

nerdCopter avatar Aug 31 '22 21:08 nerdCopter

Ditto

BeauBrewski avatar Sep 01 '22 20:09 BeauBrewski

  • If you are suffering memory issue, please use the maximum fifo driver
  • You only need to include the bmi270.c or bmi270_maximum_fifo.c in target.mk

DusKing1 avatar Sep 02 '22 10:09 DusKing1

  • If you are suffering memory issue, please use the maximum fifo driver
  • You only need to include the bmi270.c or bmi270_maximum_fifo.c in target.mk

thank you kind sir, i have tried a multitude of ports, but i will "reset" and try again.

nerdCopter avatar Sep 02 '22 12:09 nerdCopter

  • If you are suffering memory issue, please use the maximum fifo driver
  • You only need to include the bmi270.c or bmi270_maximum_fifo.c in target.mk

thank you kind sir, i have tried a multitude of ports, but i will "reset" and try again.

feel free to dm me if you need more help hehe

DusKing1 avatar Sep 02 '22 13:09 DusKing1

I'd like to help with that... But unfortunately I don't have any FC with the BMI270

JulioCesarMatias avatar Sep 02 '22 19:09 JulioCesarMatias

I'd like to help with that... But unfortunately I don't have any FC with the BMI270

I have 2 Foxeer F7 V3s that are useless to me until this gyro is supported. Are you in the US? I can send you one.

I'm two weeks away from launching a new racing frame and build spec intended for use with an Emuflight preset that's already in place. Problem is about half of all racers are using the Foxeer F7. So I'm a bit invested in this. Unfortunately my coding skills are nil. But it would be my pleasure to send you a board if you think it will help move this along. DM me (Dutch) in the Discord group if interested.

DutchFPV avatar Sep 04 '22 22:09 DutchFPV

I'd like to help with that... But unfortunately I don't have any FC with the BMI270

I have 2 Foxeer F7 V3s that are useless to me until this gyro is supported. Are you in the US? I can send you one.

I'm two weeks away from launching a new racing frame and build spec intended for use with an Emuflight preset that's already in place. Problem is about half of all racers are using the Foxeer F7. So I'm a bit invested in this. Unfortunately my coding skills are nil. But it would be my pleasure to send you a board if you think it will help move this along. DM me (Dutch) in the Discord group if interested.

I'm in Brazil...

JulioCesarMatias avatar Sep 04 '22 22:09 JulioCesarMatias

Bummer.  Would probably take 2 weeks just to get to you. Was hoping you were stateside...

On Sunday, September 4, 2022 at 06:08:24 PM EDT, Julio Cesar Matias ***@***.***> wrote:  

I'd like to help with that... But unfortunately I don't have any FC with the BMI270

I have 2 Foxeer F7 V3s that are useless to me until this gyro is supported. Are you in the US? I can send you one.

I'm two weeks away from launching a new racing frame and build spec intended for use with an Emuflight preset that's already in place. Problem is about half of all racers are using the Foxeer F7. So I'm a bit invested in this. Unfortunately my coding skills are nil. But it would be my pleasure to send you a board if you think it will help move this along. DM me (Dutch) in the Discord group if interested.

I'm in Brazil...

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

DutchFPV avatar Sep 05 '22 22:09 DutchFPV

pinging another person (@Guidus93) (Zeez & iFlight) that may be able to help or forward to potential helpers...

nerdCopter avatar Sep 19 '22 20:09 nerdCopter

Has anyone made any progress on this yet?

chucky-whiskers avatar Dec 26 '22 22:12 chucky-whiskers

Has anyone made any progress on this yet?

nope. only failed attempts.

nerdCopter avatar Dec 27 '22 17:12 nerdCopter

Is there any update on this? I've managed to compile the IFLIGHT_F745_AIO_V2 target based on the branch 20220726_BMI270_targets (of course with modifications) I don't have this board, but have another type with BMI270, so that will be my next step, unless somebody already solved this Sorry, pretty new to compiling Emuflight.

Edit: Did the changes on target BETAFPVF411 (the board I have), and gyro is working on the bench, so something is definitely not right 😄 Also, I must admit I've used an older version of accgyro_spi_bmi270.

Peck07 avatar May 14 '23 08:05 Peck07

Is there any update on this? I've managed to compile the IFLIGHT_F745_AIO_V2 target based on the branch 20220726_BMI270_targets (of course with modifications) I don't have this board, but have another type with BMI270, so that will be my next step, unless somebody already solved this Sorry, pretty new to compiling Emuflight.

Edit: Did the changes on target BETAFPVF411 (the board I have), and gyro is working on the bench, so something is definitely not right smile Also, I must admit I've used an older version of accgyro_spi_bmi270.

you "do" or "do not" have your modifications working??. image

it is my understanding that current Emu code-base is missing too many things for the bmi270 driver to work.

nerdCopter avatar May 15 '23 12:05 nerdCopter

this was the latest BMI code attempt. still massively broken. 20220906_BMI270_more-try_still-broke_massive-PITA https://github.com/nerdCopter/EmuFlight_nerdRepo/tree/20220906_BMI270_more-try_still-broke_massive-PITA

tried with iNav as well, but failed. i'm thinking iNav logic would work better for our old code base, but may need to be a mix of both sources.

nerdCopter avatar May 15 '23 12:05 nerdCopter

Compiling code to targets BETAFPVF411, IFLIGHT_F745_AIO_V2: https://github.com/Peck07/EmuFlight/tree/20220726_BMI270_targets

WARNING: still needs to be tested in flight!

Peck07 avatar May 15 '23 16:05 Peck07

@Peck07 I can bench test the IFLIGHT_F745_AIO_V2.

Also have a Skystars with BMI270 I can test on, I believe its SKYSTARSF7HDPRO

BeauBrewski avatar May 15 '23 21:05 BeauBrewski

@nerdCopter started a PR: https://github.com/emuflight/EmuFlight/pull/890

Peck07 avatar May 15 '23 21:05 Peck07