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
Correct current scale in INAV not possible
#16
(11-Apr-2021, 01:57 PM)lownslow Wrote: Not that this helps you but I recently installed a new HGLRC Zeus F722 stack and the manual shows the settings for the voltage and current perimeters.  The previous stack is had (Lumenier LUX7) also showed the settings in the manual.  I don’t understand why more manufacturers don’t do this as it would sure make life easier.....  Huh

Manufacturer provided scales for voltage are usually in the right ballpark but the current scale the value might not always be correct as this will depend on the ESC you match/paired it with since the current sensor is usually on the ESC.

The HGLRC Zeus F730 stack is one example I found/tested where the current scale was completely wrong in the manual. This was because they have a generic manual for the Hglrc Zeus F722 mini that was paired with a different ESC.

Furthermore on some ESC’s the current sensor data is sent to the FC as an analog signal (current meter source set to onboard adc) and this can be calibrated via Betaflight/iNav. While other ESC’s send the current sensor data via esc telemetry (current meter source set to ESC sensor) and this has to be calibrated via BLHeli.

In general, since most recent FC’s do not have an onboard current sensor, I rather expect ESC manufacturers to provide the correct sensor scale value.
Reply
Login to remove this ad | Register Here
#17
I'm facing the same issue, I cant get the proper current with INAV in the Diatone Mamba basic F405 MK2. Did you solve it?
Reply
#18
(03-Sep-2021, 02:04 PM)PeladoMat Wrote: I'm facing the same issue, I cant get the proper current with INAV in the Diatone Mamba basic F405 MK2. Did you solve it?
Which iNav target are you using? Can you take a clear picture of the FC and a CLI dump?
Reply
#19
Here are the diffs for both targets that I tried:
https://aricafpv.cl/es/miembros/PeladoFPV/RedGryphus


FC Photo:
[Image: rF48cN3geD34apM?x=1904&y=615&a=true&file...calingup=0]
Reply
#20
Can you post a resource dump?
Reply
#21
Based on the dump you posted, it looks like the ADC assignments for current and RSSI are swapped. Try entering this in the CLI:
Code:
set rssi_adc_channel = 2
set current_adc_channel = 3
save

Still need the resource dump to confirm pin assignments though.
Reply
#22
$X>q@<
Entering CLI Mode, type 'exit' to return, or 'help'

# resource dump
IO:
----------------------
A00: FREE
A01: FREE
A02: MOTOR4 OUT
A03: MOTOR1 OUT
A04: MPU CS
A05: SPI1 SCK
A06: SPI1 MISO
A07: SPI1 MOSI
A08: BEEPER OUT
A09: FREE
A10: FREE
A11: USB IN
A12: USB OUT
A13: FREE
A14: FREE
A15: FREE
B00: MOTOR2 OUT
B01: MOTOR3 OUT
B02: FREE
B03: FLASH CS
B04: LED2 OUT
B05: LED1 OUT
B06: I2C1 SCL
B07: I2C1 SDA
B08: FREE
B09: FREE
B10: SERIAL3 UART TX
B11: SERIAL3 UART RX
B12: OSD CS
B13: SPI2 SCK
B14: SPI2 MISO
B15: SPI2 MOSI
C00: INVERTER OUT
C01: ADC CH1
C02: FREE
C03: ADC CH2
C04: MPU EXTI
C05: FREE
C06: SERIAL6 UART TX
C07: SERIAL6 UART RX
C08: FREE
C09: FREE
C10: SPI3 SCK
C11: SPI3 MISO
C12: SPI3 MOSI
C13: FREE
C14: FREE
C15: FREE
D02: FREE

#
Reply
#23
Hmm, that shows your current ADC assigned to channel 2, but mapped to pin C03, which should be correct.

Are you seeing any current reading? What is your current scale set to?
Reply
#24
(03-Sep-2021, 08:32 PM)V-22 Wrote: Hmm, that shows your current ADC assigned to channel 2, but mapped to pin C03, which should be correct.

Are you seeing any current reading? What is your current scale set to?

I did a full chip erase and tried again the INAV/MAMBAF405 target without pasting my diff and now it works:

[Image: enHW4cTFp9sw2Gf?x=944&y=615&a=true&file=...calingup=0]

Its confusing the the BF target and INAV target are called differently.

thanks for you help!
[-] The following 1 user Likes PeladoMat's post:
  • V-22
Reply
#25
Great! Happy flying!
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  iNav on NeutronRC AT32F435 mini AIO necbot 12 1,465 3 hours ago
Last Post: mstc
  Recently flashed INAV to speedybee f405 and already had issues on quad crash. grozaalex 0 309 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 656 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