Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JHEMCU F745 AIO target with MSP functionality. #1066

Open
DutchFPV opened this issue May 23, 2024 · 16 comments
Open

JHEMCU F745 AIO target with MSP functionality. #1066

DutchFPV opened this issue May 23, 2024 · 16 comments

Comments

@DutchFPV
Copy link

Vendor/Model

CLI dump or Unified Target

Hoping to get this with MSP functionality for use with HDZero. Not sure if that has all been merged yet or not.

@nerdCopter
Copy link
Member

here you go, i had to remove motor 7 and 8 for it to compile.
EmuFlight_0.4.3_JHEF745_Build_94e9f5a2a.hex.zip

please test and feedback. i'm okay with merging without motor 7 and 8 because they are no associated timers defined for them in BF.

you have to use latest configurator here: https://github.com/emuflight/dev-master/releases/tag/20240501.162228-cfg

@DutchFPV
Copy link
Author

DutchFPV commented May 23, 2024 via email

@DutchFPV
Copy link
Author

Got the following feedback from my friend after testing:
-Vtx control not working (vtx always switches to R1, not controllable through elrs vtxadmin)
-Sometimes a motor won't spin when armed normally, and when trying to spin individual motors (either through emu config or using turtle mode switch) a motor often won't spin, then that esc reboots.

Let me know if you need any further info. Thanks!

@nerdCopter
Copy link
Member

Sorry, but the MSP-Display-port is bare-minimum, there is no VTX-Backpack/ VTX-Admin support.

as for the motors, i have no clue, sounds more like a hardware problem considering the reboot. or a DMA problem if only a motor spin problem.
Could try set dshot_burst = OFF, but i dont know.

@DutchFPV
Copy link
Author

Ok reviving this after some further testing. We've established that the BF 4.4 target works with defaults applied. Upon further review it looks like the defaults file I gave you changed since BF 4.2. Here is a CLI dump from tested-working BF 4.4 target with custom defaults applied. Can we give this a try? Let me know if you need any more info
btfl_cli_jhef745_440.txt.pdf

(BTW, we changed the file extension to .pdf to trick Facebook. But this will open normally as a text file.)

@nerdCopter
Copy link
Member

there is a v1 and a v2, do you know which id proper for the hardware?
JHEF745 JHEF745V2

@nerdCopter
Copy link
Member

here is JHEF745V2 minus motor 7 and 8 which did not have timers defined.
EmuFlight_0.4.3_JHEF745V2_Build_0f9c0f77a.hex.zip

@DutchFPV
Copy link
Author

DutchFPV commented Aug 28, 2024

The BF target he's using is for V1. Sorry. Can we give that one a try?

@nerdCopter
Copy link
Member

i reviewed your .txt side-by-side, i see no differences to what is in master https://github.com/emuflight/EmuFlight/tree/master/src/main/target/JHEF745 🤷‍♂️

@DutchFPV
Copy link
Author

So you're saying what's in the BF dump matches the Emu master? That's what I was trying to confirm. Emu gave odd motor behavior and desyncs but the drone flew fine on BF. Guess it could have been a flash error or something else. Will try again with the master from the configurator and confirm. Thanks.

@nerdCopter
Copy link
Member

nerdCopter commented Aug 29, 2024

i suppose you could get timers and dma from emu and we can re-compare. otherwise the all the pins are identical with exception that motor 7 and 8 are removed in Emu because the timers were never defined by manufacturer.

Since Emu does not have RPM filters, may need static ESC timing and higher demag compensation.

@nerdCopter
Copy link
Member

for what it's worth BF devs and community have noted JHEMCU as typically low quality.

@DutchFPV
Copy link
Author

We'll see what happens with another test. If it still has issues I'll dump timers and dma. Thanks!

@DutchFPV
Copy link
Author

So same thing. In motors tab all motors spin together, but motors 3 and 4 desync if you try to spin them individually. These same motors are giving erratic behavior in flight. I think I found dma, but how can I query timers? I'll upload both for you.

@nerdCopter
Copy link
Member

dang, looks like Emu does not have the timers command :( 🤕

@nerdCopter
Copy link
Member

can try set dshot_burst = ON|OFF , but probably no help. not sure where to go from here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants