05-May-2021, 08:15 AM
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.
- 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
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
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
RC stuff i build: https://der-frickler.net/modellbau