Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remapping servos to other pins in INav sources
#1
Hi There,

I just started using iNav again after some years of more or less RC abstinence - really great work that has been done there!

I am running a JHEMCU GHF13 AIO Board (MATEKF411 target) on a small quad and it works just fine with an additional i2c baro and compass, gps via serial.

Now i have one of these boards with one broken ESC so i thought about using that one for a small wing. Problem: as the ESCs are onboard, its missing the Servo/Motor outputs.
So i thought to "just" remap 2 Servo outputs to the RSSI and LED pins of the board. I checked it in Betaflight via resource remapping and it works - so it should be ok from the hardware side.

In iNavi tried to edit the target.c and target.h for the MATEKF411 target to achieve the same. It shows the changed pinout via resource on the CLI, but i don't get a servo signal on the pins.

Code:
# resource
IO:
----------------------
A00: MOTOR5 OUT
A01: MPU EXTI
A02: FREE
A03: FREE
A04: MPU CS
A05: SPI1 SCK
A06: SPI1 MISO
A07: SPI1 MOSI
A08: MOTOR6 OUT
A09: FREE
....


- Should there be a servo signal in iNav if Mixer and Output are enabled and show e.g. 1500ms for the Servo, but the quad is not armed?
- What is the right way to change the pinout, i removed the RSSI and LED definitions in target.h and modified the outputs for S5 and S6 in target.c
Code:
   //DEF_TIM(TIM2, CH2, PB3,  TIM_USE_MC_SERVO | TIM_USE_FW_SERVO, 0, 0), // S5  D(1,6,3)
   //DEF_TIM(TIM2, CH3, PB10, TIM_USE_MC_SERVO | TIM_USE_FW_SERVO, 0, 0), // S6  D(1,1,3)
   DEF_TIM(TIM2, CH2, PA0,  TIM_USE_MC_SERVO | TIM_USE_FW_SERVO, 0, 0), // S5  D(1,6,3)
   DEF_TIM(TIM2, CH3, PA8,  TIM_USE_MC_SERVO | TIM_USE_FW_SERVO, 0, 0), // S6  D(1,1,3)

    //DEF_TIM(TIM1, CH1, PA0,  TIM_USE_ANY,   0, 0), //softserial_tx2 - 2812LED TIM_USE_LED   D(2,1,6)
    //DEF_TIM(TIM5, CH1, PA8,  TIM_USE_PPM,   0, 0), //use rssi pad for PPM/softserial_tx1

The code compiles and i can upload it, everything seems ok, but no signal on the specified pins.

Can you point me into the right direction on how to find the issue?
Thanks a lot
Reply
Login to remove this ad | Register Here
#2
So far i was unable to get this to work in iNAV, so i will have to stick to betaflight for the moment where i could change it via the resource mapping.

         
Reply
#3
I have not remapped servos in iNav before, so I'm not sure how to answer your question.

That wing looks cool though! What model is it? Wingspan?
Reply
#4
It's a Tiny Wing from Kingkong, 430mm wingspan, 110g with 2S450.
Side project that uses the broken AIO from my u250 Quad.
[-] The following 1 user Likes derFrickler's post:
  • V-22
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  iNav on NeutronRC AT32F435 mini AIO necbot 11 1,454 33 minutes ago
Last Post: jirisvabik
  Recently flashed INAV to speedybee f405 and already had issues on quad crash. grozaalex 0 306 03-May-2024, 09:25 PM
Last Post: grozaalex
  Switch from BF 4.5 RC3 to INAV Maverick 0 204 19-Apr-2024, 08:44 AM
Last Post: Maverick
  Announcement INAV 7.1 - Compass No Longer Required SnowLeopardFPV 2 651 15-Apr-2024, 10:34 PM
Last Post: SnowLeopardFPV
  inav artificial horizon offset range quinn 5 238 08-Apr-2024, 12:38 AM
Last Post: StuweFPV


Login to remove this ad | Register Here