Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAV AltHold / NavPosHold triggers wide open throttle #6109

Closed
danhouldsworth opened this issue Sep 7, 2020 · 7 comments
Closed

NAV AltHold / NavPosHold triggers wide open throttle #6109

danhouldsworth opened this issue Sep 7, 2020 · 7 comments

Comments

@danhouldsworth
Copy link

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

@issue-label-bot issue-label-bot bot added the BUG label Sep 7, 2020
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label BUG to this issue, with a confidence of 0.60. Please mark this comment with 👍 or 👎 to give our bot feedback!

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

@digitalentity
Copy link
Member

Please provide configuration + logs of the issue

@digitalentity digitalentity added Support and removed BUG labels Sep 7, 2020
@danhouldsworth
Copy link
Author

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

@digitalentity
Copy link
Member

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.

@FreeLiveTutor
Copy link

Config dump attached:
F722SE_INAV_CLI_DUMP.txt

@A2BELE
Copy link

A2BELE commented Oct 23, 2020

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

@stale
Copy link

stale bot commented Dec 25, 2020

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 stale bot added the Inactive label Dec 25, 2020
@DzikuVx DzikuVx closed this as completed Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants