inav icon indicating copy to clipboard operation
inav copied to clipboard

Support new version of NOXE F4 FC

Open FranzAr opened this issue 6 years ago • 305 comments

Current Behavior

The NOXE F4 FC from Banggood has been updated to a new version labeled "V1". The "old" target NOX does not work on that new hardware version.

Desired Behavior

Support new version "V1" as this FC is quite inexpensive and very small. Ideal for very limited space and light builds.

Suggested Solution

Betaflight seems to support this FC with the target Flywoo F411 and on the Flywoo website there is an iNav version 2.3.0 downloadable for this target. I flashed this to the new NOXE board and it seems to work fine. Maybe this could be a good starting point.

Who does this impact? Who is this for?

Everyone who needs a inexpensive and very small FC for iNav :-)

Additional context

iNav download from Flywoo: https://flywoo.net/products/flywoo-goku-f411-micaro-stack Noxe F4 at Banggood: https://www.banggood.com/de/20x20mm-Upgrade-Betaflight-F4-Noxe-V1-Flight-Controller-AIO-OSD-5V-8V-BEC-w-Barometer-and-Blackbox-for-RC-Drone-p-1310419.html

noxev1

FranzAr avatar Jun 21 '20 08:06 FranzAr

Issue-Label Bot is automatically applying the label Feature request to this issue, with a confidence of 0.93. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Jun 21 '20 08:06 issue-label-bot[bot]

Please have a look at https://github.com/iNavFlight/inav/blob/master/docs/policies/NEW_HARDWARE_POLICY.md#new-target-additions

digitalentity avatar Jun 21 '20 08:06 digitalentity

What, if someone would come up with a target config derived from betaflight for this FC? Any chance that would be merged ?

snaewe avatar Jun 22 '20 07:06 snaewe

As a baseline - community created targets may be merged, but are unlikely to be included in the release.

A one off exceptions are possible if a board is well designed, would be a good fit for INAV and there is a significant demand for support of the board.

digitalentity avatar Jun 22 '20 08:06 digitalentity

Howdy @digitalentity ,

The board is a cheap 20x20mm board that even I picked because of the price, it has an OSD, 4 PWM channels and enough UARTs to be useful.

If I was to get one of these sent to you, would you be able to use it as a Dev board to make it compatible with iNav?

Matt

moggiex avatar Jun 22 '20 09:06 moggiex

Actually @digitalentity ,

Reading the policy, if I went through list of common cheap boards in BG and sent you say up to 5 of them, would that be better overall?

Have checked the minimum specs and it would take a short while to list and cross reference the boards, then get you to double check them.

The boards like this one will get bought by people like me and the user above because of their price, specs and specifically for their size for light builds.

Is that something you would find helpful?

Matt

moggiex avatar Jun 22 '20 09:06 moggiex

Thanks for reaching out Matt, that would indeed be helpful. What boards do you have in mind?

digitalentity avatar Jun 22 '20 09:06 digitalentity

Howdy,

The one above for sure and basically anything is £25 or less per board that isn't supported.

The £25/$30 limit is a sensible one as the premium boards will be the likes of Matek and normally supported early. If you have any suggestions on specific ones let me know. I'll go do some searching now and see what I find.

Also are you able to send me an address and I'll get the NOXE board above sent to you asap too.

Matt

moggiex avatar Jun 22 '20 09:06 moggiex

@moggiex Thanks for the offer, please give me a ping at [email protected] to discuss further

digitalentity avatar Jun 23 '20 12:06 digitalentity

For anyone who is reading this and want at least 2.3.0 of iNav to run on this board, see here https://www.youtube.com/watch?v=lpzOU7lIsEg

@digitalentity , saw your reply earlier, have emailed you directly.

Matt

moggiex avatar Jun 30 '20 11:06 moggiex

Can you also include SoftSerial support so we can use SmartAudio or Tramp components?

Thanks

tonyyng avatar Jun 30 '20 13:06 tonyyng

The HEX file linked above does not work! Based on the work by @SeanTheITGuy I did some changes and tests for the target. Look at my inav fork https://github.com/snaewe/inav/tree/add-FLYWOOF411 A small test is shown here: https://www.youtube.com/watch?v=pH0Ztvg2kkU

(@mooiweertje Are you Jannes Bosma who commented on the RagTheNutsOff video ?)

snaewe avatar Jul 01 '20 05:07 snaewe

@mooiweertje If you cloned my repo, you have to checkout the 'add-FLYWOOF411' branch first. Then 'make TARGET=FLYWOOF411'. HTH

snaewe avatar Jul 01 '20 07:07 snaewe

Thanks gents.

If you need an idiot to test with, just tag me a hex file :)

Matt

moggiex avatar Jul 01 '20 07:07 moggiex

@mooiweertje @SeanTheITGuy is also working on this (I based my changes on his). We need to synchronize that.

Re. 2 motors: Really? Why do we want two motors with this tiny board? Will that still allow 3 servos + 1 motor ? Re. testing: Yes, I only did a quick test of the motor/servo outputs. Testing more (OSD, GPS, I2C) would be next.

snaewe avatar Jul 01 '20 08:07 snaewe

It's just how INAV works with two motors on FixedWing. You can use only one of course but the mapping should have 2.

Wheres the head bang emjoi?

PS. Yes I know it's written into the base code and that its timer related. But really? How many people actually use two motors, let alone diff thrust and use it in the air anyway? Huge waste a PWM channel, especially on these smaller boards with limited outputs. Its been a feature waiting for a cause for years. Meh, rant over ;)

moggiex avatar Jul 01 '20 08:07 moggiex

I assume creating two target variants (1 motor vs. 2 motors) would be an option

snaewe avatar Jul 01 '20 09:07 snaewe

No just one with the standards is fine. You can setup what ever you want yourself in the configurator mixer tab.

Not if I want 3 servos and one motor and two of the four available outputs are "marked" as motor outputs, or am I missing something?

snaewe avatar Jul 01 '20 09:07 snaewe

No just one with the standards is fine. You can setup what ever you want yourself in the configurator mixer tab.

Not if I want 3 servos and one motor and two of the four available outputs are "marked" as motor outputs, or am I missing something?

I compiled a version with two outputs marked as motor, setup the mixer (1 motor + 3 servos) and got "PWM output init error: Not enough servo outputs/timers" in cli "status" -> No go.

snaewe avatar Jul 01 '20 09:07 snaewe

I'm missing the details too but this is the standard and it works the way you want it to work. Just do S1 and S2 TIM_USE_MC_MOTOR | TIM_USE_FW_MOTOR and S3 and S4 TIM_USE_MC_MOTOR | TIM_USE_FW_SERVO. You will see you can configure what you want in the configurator mixer tab.

Ehh...Nope. Doesn't work

snaewe avatar Jul 01 '20 09:07 snaewe