inav icon indicating copy to clipboard operation
inav copied to clipboard

NAV AltHold / NavPosHold triggers wide open throttle

Open danhouldsworth opened this issue 6 years ago • 7 comments

Hi

So I've recently completed a dedicated multi-rotor build for iNAV. My motivation for this build being about experimenting with inertial sensor fusion using a full suite of available sensors.

Hardware :

  • FC : Matek F722SE / Flashed with iNAV 2.5.2
  • ESC : HobbyWing XRotor 4in1 60A / Flashed with BLheli32 Rev32.7
  • Frame : Armattan CF 226
  • Motors : Emax 2205 2300kv
  • Props : Gemfan 4023
  • Power : Turnegy Graphene 1300mAh / 4s
  • Filtering Electrical : Rubycon ZLH 35V/470uF
  • Filtering Physical : Silicone grommets M4 to M3 isolating FC

Sensors :

  • IMU : MPU6000 (onboard) / SPI
  • Baro : (onboard) / I2C 800kHz
  • Mag : (on GPS unit) / I2C 800kHz
  • GPS : Beitian BN-880 / USART @ 38400
  • Optics : Matek Optic Flow & Lidar Sensor / USART MSP
  • RX : Spektrum Sat / USART @ 115200

Configuration

  • ESC protocol : DSHOT600
  • Loop time : 2kHz

I've tuned the PIDs so in both Rates (Acro/Gyro) mode or Horizon (Accel) mode it flies well with good control authority and with no visible or audible oscillations even under high power. Hovering at ~50% throttle stick.

Mag & Optics have been calibrated using the iNAV configurator. Running several times in various locations to check for anomalies. GPS has a good & correct 3D fix

Configurator Sensors tab show that optic flow giving correct readings when between 2-200cm.

However, when I engage either AltHold or PosHold modes (whether Surface mode is engaged or not) it appears to go into wide open throttle. I've reduced the Alt hold PIDs to near zero and still get the same result.

Could someone advise if I've misunderstood these Alt Hold / Pos Hold modes? Or if there's anything obvious in the setup I've missed?

I'm expecting it to attempt to hold the Alt / POS at the point that I engage that mode.

image image image

danhouldsworth avatar Sep 07 '20 16:09 danhouldsworth

Issue-Label Bot is automatically applying the label BUG to this issue, with a confidence of 0.60. 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 Sep 07 '20 16:09 issue-label-bot[bot]

Please provide configuration + logs of the issue

digitalentity avatar Sep 07 '20 17:09 digitalentity

Thanks @digitalentity - Let me just double check configuration = screen shot of iNAV Configurator > PIDs / Rates / Feedforward values? For the logs - (sorry for the additional question) - does the F722SE have on board flash other than the SD card slot? If not I will source a Class 10 SD card mentioned in #2796 and then come back

danhouldsworth avatar Sep 08 '20 09:09 danhouldsworth

By config I mean - go to CLI, execute dump, copy the output and share it via pastebin or as a file. Re: logs - only SD-Card logging is possible on that board.

digitalentity avatar Sep 08 '20 12:09 digitalentity

Config dump attached: F722SE_INAV_CLI_DUMP.txt

FreeLiveTutor avatar Sep 08 '20 19:09 FreeLiveTutor

What did you find? Mine is doing same thing. Also F722se

A2BELE avatar Oct 23 '20 08:10 A2BELE

This issue / pull request has been automatically marked as stale because it has not had any activity in 60 days. The resources of the INAV team are limited, and so we are asking for your help. This issue / pull request will be closed if no further activity occurs within two weeks.

stale[bot] avatar Dec 25 '20 11:12 stale[bot]