iNavFlight / inav

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

JHEMCU F7 - support ! #5002

Closed yo8aiv closed 4 years ago

yo8aiv commented 5 years ago

Hi . i don't know if this is the right way to ask for new FC to be supported.

its called JHEMCU F7 target in BF is JHEF7DUAL. this board could be of better use in iNav than BF since it has so many uart's. more info https://github.com/betaflight/betaflight/issues/8605 https://github.com/betaflight/betaflight/pull/7398

Thanks.

Morphin22 commented 2 years ago

Thank you very very much

snaewe commented 2 years ago

inav_4.0.0_JHEF7DUAL.zip

Could you please share the source files of this? Thank you very much.

jeffclassy commented 2 years ago

my board is jhemcuF745 Pro. I haven't tried it yet. how about you guys?

MacDaddyFPV commented 2 years ago

inav_4.0.0_JHEF7DUAL.zip

Can I get a hex for 4.1 RC1? Or can you share the source files so I can build the hex myself? Thanks

flybabo commented 2 years ago

terminate25 already posted the source files (target.h and target.c) on Nov 14, 2020 :) They should work with the latest iNav release.

flybabo commented 2 years ago

I've created 3 different hexes from 4.1 RC1 source code for 3 different purposes. JHEF7DUAL_SINGLE: 1 motor (S4) and up to 5 servos for a single prop airplane. JHEF7DUAL_TWIN: 2 motors (S5,S6) and up to 4 servos for a twin prop airplane (with differential thrust). JHEF7DUAL_MULTI: up to 6 motors for a hexacopter, 4 motors + 2 servos for a quadcopter with possible 2-axis camera control, 3 motors + 3 servos for a tricopter configuration. Due to a limitation in current pwm output mapping algorithm in iNav, different hexes must be created to avoid the timer conflict on this FC. Actually, this board can support up to 8 DSHOTable motors by trading the UART6 for two additional motors/servos. Please try and let me know any problems. According to the release note, you should use inav-configurator-4.1.0-RC1 to configure the FC. Cheers!

inav-4.1.0-rc1-hex.zip (Updated TWIN hex and added more MAG drivers)

NOTE: The default gyro is set to ICM20689.

jeffclassy commented 2 years ago

I've created 3 different hexes from 4.1 RC1 source code for 3 different purposes. JHEF7DUAL_SINGLE: 1 motor (S4) and up to 5 servos for a single prop airplane. JHEF7DUAL_TWIN: 2 motors (S5,S6) and up to 4 servos for a twin prop airplane (with differential thrust). JHEF7DUAL_MULTI: up to 6 motors for a hexacopter, 4 motors + 2 servos for a quadcopter with possible 2-axis camera control, 3 motors + 3 servos for a tricopter configuration. Due to a limitation in current pwm output mapping algorithm in iNav, different hexes must be created to avoid the timer conflict on this FC. Actually, this board can support up to 8 DSHOTable motors by trading the UART6 for two additional motors/servos. Please try and let me know any problems. According to the release note, you should use inav-configurator-4.1.0-RC1 to configure the FC. Cheers!

inav-4.1.0-rc1-hex.zip

thank you very much.

kaiopaulinobr commented 2 years ago

I've created 3 different hexes from 4.1 RC1 source code for 3 different purposes. JHEF7DUAL_SINGLE: 1 motor (S4) and up to 5 servos for a single prop airplane. JHEF7DUAL_TWIN: 2 motors (S5,S6) and up to 4 servos for a twin prop airplane (with differential thrust). JHEF7DUAL_MULTI: up to 6 motors for a hexacopter, 4 motors + 2 servos for a quadcopter with possible 2-axis camera control, 3 motors + 3 servos for a tricopter configuration. Due to a limitation in current pwm output mapping algorithm in iNav, different hexes must be created to avoid the timer conflict on this FC. Actually, this board can support up to 8 DSHOTable motors by trading the UART6 for two additional motors/servos. Please try and let me know any problems. According to the release note, you should use inav-configurator-4.1.0-RC1 to configure the FC. Cheers! inav-4.1.0-rc1-hex.zip

thank you very much. 4.1 rc1 working on jhemcu f7 ?

flybabo commented 2 years ago

Attached a zip file containing 3 inav_4.1.0 hexes targeted to JHEMCU F7 DUAL FC. JHEF7DUAL_SINGLE: 1 motor (S4) and up to 5 servos for a single prop airplane. JHEF7DUAL_TWIN: 2 motors (S5,S6) and up to 4 servos for a twin prop airplane (with differential thrust). JHEF7DUAL_MULTI: up to 6 motors for a hexacopter, 4 motors + 2 servos for a quadcopter with possible 2-axis camera control, 3 motors + 3 servos for a tricopter configuration. Please try one of three hexes that fits your need.

inav_4.1.0_JHEF7DUAL.zip

g10ck17 commented 2 years ago

Attached a zip file containing 3 inav_4.1.0 hexes targeted to JHEMCU F7 DUAL FC. JHEF7DUAL_SINGLE: 1 motor (S4) and up to 5 servos for a single prop airplane. JHEF7DUAL_TWIN: 2 motors (S5,S6) and up to 4 servos for a twin prop airplane (with differential thrust). JHEF7DUAL_MULTI: up to 6 motors for a hexacopter, 4 motors + 2 servos for a quadcopter with possible 2-axis camera control, 3 motors + 3 servos for a tricopter configuration. Please try one of three hexes that fits your need.

inav_4.1.0_JHEF7DUAL.zip

Hello, flybabo. just checked MULTI. does not work(, does not change position, gyro and accel are not visible. put rc1. working. I'm waiting for a new stable version, thank you very much

flybabo commented 2 years ago

That's odd. I tested all three hexes and all worked for me. Set gyro to AUTO in configuration page and save/reboot it. Default gyro is ICM20689 and you need to put "set gyro_to_use=1" at CLI to use MPU6000.

g10ck17 commented 2 years ago

That's odd

Hello, flybabo. checked, did as he said and everything worked. thanks a lot. I want to try to build it myself, could you post the config files target.c, target.h....?

Bolgor commented 2 years ago

Flybabo will you do 5.0 (after release inav stable) version for this board?

VanLaser commented 2 years ago

I have an AuroraRC SupraF7 BT that has the same JHEMCU target in Betaflight. I made a custom INAV build based on information in this thread, on Arch Linux, and I included the slightly modified source files, and a .hex target. I modified the USER1 and USER2 pins also based on earlier information in this thread (by @smaller09), and at least USER2 pin works (I can enable/disable 9V BEC from the FC which is connected to USER2). I tested it with a quadcopter, I wouldn't know what to change to create other custom targets as those provided by @flybabo. I also had to put "set gyro_to_use=1" in CLI since gyro is MPU6000, and set Gyro to AUTO afterwards in Configuration tab.

Hopefully this helps somebody.

JHE-SUPRAF7BT.zip

casfra96 commented 2 years ago

Attached a zip file containing 3 inav_4.1.0 hexes targeted to JHEMCU F7 DUAL FC. JHEF7DUAL_SINGLE: 1 motor (S4) and up to 5 servos for a single prop airplane. JHEF7DUAL_TWIN: 2 motors (S5,S6) and up to 4 servos for a twin prop airplane (with differential thrust). JHEF7DUAL_MULTI: up to 6 motors for a hexacopter, 4 motors + 2 servos for a quadcopter with possible 2-axis camera control, 3 motors + 3 servos for a tricopter configuration. Please try one of three hexes that fits your need.

inav_4.1.0_JHEF7DUAL.zip

This version works fine for me, but the MULTI version has another problem. I am trying to add two servos to a quad on ports 5 and 6. When I add a servo output in the INAV mixer, motor 4 is automatically moved to port 5. I have made several attempts and found no way to add a servo keeping the motor on the output 4. It would be a problem for me to reverse the connections on physical ports. Do you know a way to fix this problem? Cattura ?

paulfpvua commented 2 years ago

Hi! How about INAV 5? Thanks!

izangari commented 2 years ago

Hello. I got FC jhemcu f7 xsd pro (used for drone), there are some possibilities it works with Inav? I found on GitHub a jhef7dual_5.0.hex and tried to install it with last inav configurator(5) but it doesn't works... This FC have all possibilities to be used with Inav... I hope will be possible use it. Someone may help me?

casfra96 commented 2 years ago

Hello. I got FC jhemcu f7 xsd pro (used for drone), there are some possibilities it works with Inav? I found on GitHub a jhef7dual_5.0.hex and tried to install it with last inav configurator(5) but it doesn't works... This FC have all possibilities to be used with Inav... I hope will be possible use it. Someone may help me?

Can you share the link for jhef7dual_5.0.hex? It could be useful for my FC

izangari commented 2 years ago

https://github.com/jhemcu/FC-ESC-Firmware/tree/main/F7-XSD%20PRO here you'll can find the firmware. May you know me if you will able to make it works on your FC? I tried to install it with Inav configurator 5. Thank you

casfra96 commented 2 years ago

Thank you very much for the link! Unfortunately I don't know how to help you, I have a similar problem with my jhemcu f7 dual.

paulfpvua commented 1 year ago

Hello pilots! My good comrade compiled iNAV 6 firmware for JHEMCU F7BT Dual (JHEF7DUAL BT). Yesterday successfully tested in flight. Everything works (navigation modes too). inav_6.0.0_JHEF7DUAL (2).hex.zip

Let's say "Thank you, Arsen" :)

Newtothegrounds commented 1 year ago

Does anyone have firmware/hex file for inav 5 or 6 for jhemcu ghf722aio-icm . Such a good long range FC AIO shame inav doesn't support more boards, specially ones geared towards AIO that have enough uarts for added sensors.

Newtothegrounds commented 1 year ago

I've tried the one above my post as well as the one for inav 5.1 they flash fine bit nothing works in inav. I have no gyro, acel, or baro

Sent from my Galaxy

-------- Original message -------- From: KiWyFox @.> Date: 2023-04-23 9:16 p.m. (GMT-05:00) To: iNavFlight/inav @.> Cc: Newtothegrounds @.>, Comment @.> Subject: Re: [iNavFlight/inav] JHEMCU F7 - support ! (#5002)

Does anyone have firmware/hex file for inav 5 or 6 for jhemcu ghf722aio-icm . Such a good long range FC AIO shame inav doesn't support more boards, specially ones geared towards AIO that have enough uarts for added sensors.

why not using the one above your post!?? Inav 5.1 is working, Inav 6 is working! if you dont trust these hex files, you can compile it yourself. you will find the working target files in this thread.

— Reply to this email directly, view it on GitHubhttps://github.com/iNavFlight/inav/issues/5002#issuecomment-1519238943, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A7MHAJGXWWAEEDWANP36PW3XCXH7DANCNFSM4IK2E5NA. You are receiving this because you commented.Message ID: @.***>

KiWyFox commented 1 year ago

you could compare the betaflight target files for your FC with the source files of jhemcu f7 dual and then make the needed changes in the target files of this thread, to compile it yourself.

redeyejoe commented 1 year ago

Hello pilots! My good comrade compiled iNAV 6 firmware for JHEMCU F7BT Dual (JHEF7DUAL BT). Yesterday successfully tested in flight. Everything works (navigation modes too). inav_6.0.0_JHEF7DUAL (2).hex.zip

Let's say "Thank you, Arsen" :)

It seems to be working but the 8v that usually runs off user 1 does not work, I tried to resign the pinio 1 and 2 to with resource PINIO 1 C14 resource PINIO 2 B09 but it doesnt seeem to work, does it need to be added to target.h before compiling to work?

paulfpvua commented 1 year ago

Hello pilots! My good comrade compiled iNAV 6 firmware for JHEMCU F7BT Dual (JHEF7DUAL BT). Yesterday successfully tested in flight. Everything works (navigation modes too). inav_6.0.0_JHEF7DUAL (2).hex.zip Let's say "Thank you, Arsen" :)

It seems to be working but the 8v that usually runs off user 1 does not work, I tried to resign the pinio 1 and 2 to with resource PINIO 1 C14 resource PINIO 2 B09 but it doesnt seeem to work, does it need to be added to target.h before compiling to work?

Hello! You mean the inclusion of BEC? Works for me. Maybe I sent the wrong version of the file. Please check one of these.

Archive.zip

redeyejoe commented 1 year ago

Hello pilots! My good comrade compiled iNAV 6 firmware for JHEMCU F7BT Dual (JHEF7DUAL BT). Yesterday successfully tested in flight. Everything works (navigation modes too). inav_6.0.0_JHEF7DUAL (2).hex.zip Let's say "Thank you, Arsen" :)

It seems to be working but the 8v that usually runs off user 1 does not work, I tried to resign the pinio 1 and 2 to with resource PINIO 1 C14 resource PINIO 2 B09 but it doesnt seeem to work, does it need to be added to target.h before compiling to work?

Hello! You mean the inclusion of BEC? Works for me. Maybe I sent the wrong version of the file. Please check one of these.

Archive.zip thank you, but those are both doing the same for me, I tried another of the same FC the JHEMCU f7dual bt board, and it is doing the same, the 8v light for the BEC never comes on and the 8v pad showing no voltage. I am going to try the last working version I can find and or maybe install a working betaflight firmware and check what pins are assigned to the pinio's and see if that is what my problem is.

redeyejoe commented 1 year ago

I got the #1 of the archive.zip to work with bec, I must not have loaded it properly, thank you

MaxKirillov commented 1 year ago

Hi everyone, Recently I have got working another F7 from JHEMCU - GF30F722-ICM with this target: https://github.com/MaxKirillov/inav/tree/target_jhef722icm_board

UT3ULJ commented 1 year ago

Hi everyone, Recently I have got working another F7 from JHEMCU - GF30F722-ICM with this target: MaxKirillov@21c3e5b

Hi, do the baro work properly? i was found some inav firmware hex in other repo for this target, but unfortunately there is barometter that always displays zero alt... could you please send me hex of your build?

MaxKirillov commented 1 year ago

Hi everyone, Recently I have got working another F7 from JHEMCU - GF30F722-ICM with this target: MaxKirillov@21c3e5b

Hi, do the baro work properly? i was found some inav firmware hex in other repo for this target, but unfortunately there is barometter that always displays zero alt... could you please send me hex of your build?

Yep, it seems to be fine, I have nice baro graph in sensor tab. See the attachment below but I strongly recommend you to build yourself ) inav_7.0.0_JHEF722ICM.zip

UT3ULJ commented 1 year ago

Yep, it seems to be fine, I have nice baro graph in sensor tab. See the attachment below but I strongly recommend you to build yourself ) inav_7.0.0_JHEF722ICM.zip

So much thank You! Will try this on monday. I have tried to build it.... I used build.sh script, but it gave me an error.. Then i was tried to build it from VScode, and there i get an errors of CMake config... Sorry, i'm a little nooby here.. Will be appreciated if someone could tell me what i'm doing wrong... Thank You! The error from build script: зображення

upd: sorry, i have found docs with manuals how to build.. will try to figure it out

UT3ULJ commented 1 year ago

Yep, it seems to be fine, I have nice baro graph in sensor tab. See the attachment below but I strongly recommend you to build yourself )

Thank You so much, i have built it with 6.1.1 sources. Seems works fine! but have another trouble, maybe you could help me: https://github.com/iNavFlight/inav/discussions/9189

upd: in the sensors tab it really shows that baro works, but on the osd it's always displays zero... and i wonder what the drone could do if i switch in navigation mode with that glitch...

Upd: everything works fine, tested it today in fields. Thanks so much

NasirHayat commented 10 months ago

@UT3ULJ Could you please share link of configurator version you are using and working firmware of JHEF722ICM. i am having same board and want to try inav