iNavFlight / inav

INAV: Navigation-enabled flight control software
https://inavflight.github.io
GNU General Public License v3.0
3.11k stars 1.47k forks source link

New Target Request; HIFIONRC F7 AIO 25A/45A #6489

Closed ltwin8 closed 2 years ago

ltwin8 commented 3 years ago

Current Behavior

No fitting target found in inav

Desired Behavior

Please add a target for the board https://www.banggood.com/25_5x25_5mm-HIFIONRC-AIO-F7-Flight-Controller-OSD-Built-in-45A-Blheli_S-2-6S-4-In-1-Brushless-ESC-for-FPV-Racing-Drone-p-1716359.html?cur_warehouse=CN&rmmds=search

I think this board has good potential for inav since it has many useful features, for example: 7 full UARTs A Barometric pressure sensor 25A or 45A 2-6S capable ESC (with BB2 MCU, G-H-30) (depending on version) 5V 3A SBEC whoop-sized, 25.5 x 25.5 mm

Suggested Solution

the resource assignments can be found in here:

https://raw.githubusercontent.com/betaflight/unified-targets/master/configs/default/HFOR-HIFIONRCF7.config

Who does this impact? Who is this for?

likely big part of the hobby since sub 250g is more and more important, this board is light (7.5g) and also packs good features, ESCis not only capable for whoops, I rn it on 1900kv 2306 6S 5" "toothpick-style"

Additional context

I think the above resources are suitable to add the target to the official iNav, if I understand correctly, the target should be very close to the already supported mamba F722 FC

Shothertz commented 3 years ago

STM32F722xx_pinout_SDA_SCL

krizw commented 3 years ago

Hi! The pic https://drive.google.com/file/d/1Ace4vfIft7m2OiXP0cshKjpYQP5rGQcT/view?usp=drivesdk is 90° out. SDA is on pin 59 (PB7) and SCL on pin 58 (PB6) The internal baro and the external mag runs on the same i2c bus resource I2C_SCL 1 B06 resource I2C_SDA 1 B07

Set the mag i2c on adresses 0

set mag_bustype = I2C set mag_i2c_device = 1 set mag_i2c_address = 0 set mag_spi_device = 0 set mag_hardware = AUTO set mag_declination = 0 set mag_calibration = 0,0,0 set baro_bustype = I2C set baro_spi_device = 0 set baro_i2c_device = 1 set baro_i2c_address = 0 set baro_hardware = AUTO

Tested and working on mine HIFIONRC F7 PRO V2 + GPS BN880 + mag on BetaFlight

Yes that's working for me also in Betaflight, now we just need to convert the working settings to INAV, great job.

LeonardovichD commented 3 years ago

What's next? I need to install hex file?

LeonardovichD commented 3 years ago

Board does not connected after flashing. "No configuration received within 10 sec"

LeonardovichD commented 3 years ago

Upgrade 30.5x30.5mm HIFIONRC F722 Pro V2 F7 OSD Bluetooth Flight Controller w/ 5V 10V BEC & 45A BL_32 3-6S 4in1 ESC Stack for DJI Air Unit / Caddx RC Drone https://www.banggood.com/Upgrade-30_5x30_5mm-HIFIONRC-F722-Pro-V2-F7-OSD-Bluetooth-Flight-Controller-w-or-5V-10V-BEC-and-45A-BL_32-3-6S-4in1-ESC-Stack-for-DJI-Air-Unit-or-Caddx-RC-Drone-p-1674952.html?cur_warehouse=CN&rmmds=search Maybe it's because I have another hifionrc. But it will be great if it works)

LeonardovichD commented 3 years ago

I figured out what was happened: my fc burnt after flashing

ltwin8 commented 3 years ago

how did the FC burn? that should not happen only because of flashing.

Shothertz commented 3 years ago

Leonardo, I experieced your same problem whit mine FC and I resolved by reconnect 5/6 times the USB ;)

ltwin8 commented 3 years ago

my hardware arrived at customs today, maybe I will be able to test on it within next week

ltwin8 commented 3 years ago

i have received my hardware and tested it, however the important part, the mag on the matek gps is not working, not detectable at all, even if scanning for addresses, so I can not investigate further on the i2c problem.

the remaining part should work, I have a hifionrc FC with GPS (bn220) and crsf in working condition under inav. sadly no mag because of the not working gps.

but from what I have set up so far I can not notice a problem in inav.

Lagarda commented 3 years ago

Hi to All,

I'm novice here. I bought recently the board FC HIFIONRC F7 PRO V2. Would you please tell me how to flash it? I tried to connect via rx/tx but not successfully. If i press boot button and use usb port the system stops to see it.

Lagarda commented 3 years ago

Hi to All,

I'm novice here. I bought recently the board FC HIFIONRC F7 PRO V2. Would you please tell me how to flash it? I tried to connect via rx/tx but not successfully. If i press boot button and use usb port the system stops to see it.

Solved!

xeller8u commented 3 years ago

Hey guys I dont know what happened but i could conenct fine to my hifionrc f7 pro v2 fine at first but now no matter which USB port I plug into and no matter which cable I use I can't connect to beta flight normally it would show up as com 6 but I'm getting nothing in fact it's really weird when I plug into some USB ports I don't get anything on the board at all and when I plug into another one I get the Bluetooth light flashing I don't hear any sound when I plug it in and I still can't connect to betaflight. on my phone I can see the Bluetooth target as " Hifionrc" but I can't connect to it 'cause it asks for a password and I don't know what the password is and I have to punch in something I can't just hit ok. so no lights no sound when i plug in usb to the fc and i checked that same usb port with my other quad and betaflight pops up with com6 and loads just fine .. so all i am getting is just the BT light flashing on and off green every 1 sec. please tell me you guys might have an idea.. one thing i should mentio is that i stupidly glued my buzzer on top of the usb port but then i had to reorient my VTX so I had to take off the buzzer and I carefully took it off I did have to wiggle back and forth a few times quite a few times and I don't know if that's it because the bt ligyht comes on so maybe its getting power but no data connection? they appear to be all soldered fine and not loose but i may be wrong..

Foxli212 commented 3 years ago

Добрый день еще не решили проблему с компасом ?

virtus2232323 commented 3 years ago

Hello everyone! Tell me how to solve the compass problem in inav? In Betaflight, the issue was resolved. I inserted this code into СLI, but what about the ainav?

Set the mag i2c on adresses 0

set mag_bustype = I2C set mag_i2c_device = 1 set mag_i2c_address = 0 set mag_spi_device = 0 set mag_hardware = AUTO set mag_declination = 0 set mag_calibration = 0,0,0 set baro_bustype = I2C set baro_spi_device = 0 set baro_i2c_device = 1 set baro_i2c_address = 0 set baro_hardware = AUTO

pilkinn commented 3 years ago

Itwin8 - what was the final target.h file looking like after you got everything working?

Thanks.

virtus2232323 commented 3 years ago

When flashing in hifion rc with mamba f722 firmware, a magnetometer worked for me, it is connected to UART 3. but there is a minus, the barometer stopped working .... can someone give the firmware or instructions on how to fight !!!! Thank you!!!!

virtus2232323 commented 3 years ago

pilkinn everything is simple i connected the magnetometer to uart 3 as mentioned above. and entered the commands that I wrote below and everything worked in Betaflight,.

Bolgor commented 3 years ago

Any information about supporting this FC in future Inav releases?

Lagarda commented 3 years ago

Can somebody compile the new FM where I2C addresses of 2 main magnetometers will be included? HMC and QMC 5885

Lagarda commented 3 years ago

Can somebody compile the new FM where I2C addresses of 2 main magnetometers will be included? HMC and QMC 5885

FW - firm ware

krizw commented 3 years ago

Has anyone compiled anything lately, maybe Inav 3.0?

Lagarda commented 3 years ago

Has anyone compiled anything lately, maybe Inav 3.0?

Hi! There is another branch where PiPi offered beta version 2.5.2 as relatively stable.

https://github.com/iNavFlight/inav/issues/6132

Foxli212 commented 3 years ago

Все супер работает спасибо

Lagarda commented 3 years ago

Все супер работает спасибо

И магнитометр китайский тоже? Версия 2.5.2 норм?

Lagarda commented 3 years ago

Все супер работает спасибо

Покажешь, что в финале получилось?

Foxli212 commented 3 years ago

Gps BN880Q сразу зароботал и баро имаг и gps калибровал дома вышел на улицу все заработала и удержания и вазрат дамой

Foxli212 commented 3 years ago

Я надеюсь, что это поможет вам

inav_2.7.0_HIFIONRCF722.hex.zip

Переделай пожалуста под 3.0 прошивку

Lagarda commented 2 years ago

Gps BN880Q сразу зароботал и баро имаг и gps калибровал дома вышел на улицу все заработала и удержания и вазрат дамой

А у тебя какой магнетометр? HMC? У меня от как-то странно работает - включается - выключается. Не могу арминг из-за него поставить.

MrD-RC commented 2 years ago

https://github.com/iNavFlight/inav/blob/master/docs/policies/NEW_HARDWARE_POLICY.md

Lagarda commented 2 years ago

I have tried many times but in beta version i have my magnetometer working with a bug - the mag indicator is blinking red-blue all the time. And arming doesn't work due to that.

stale[bot] commented 2 years ago

This issue / pull request has been automatically marked as stale because it has not had any activity in 60 days. The resources of the INAV team are limited, and so we are asking for your help. This issue / pull request will be closed if no further activity occurs within two weeks.