inav icon indicating copy to clipboard operation
inav copied to clipboard

Recommended PIDs For Large Hex?

Open CradyArt opened this issue 6 years ago • 53 comments

I replaced the aging Pixhawk on my 790mm hexacopter with a Matek F765-WING and was wondering if anyone had some tips for the PID settings in iNAV (the largest prop size mentioned in the configurator 12 inches and I'm running 15-inch props)

Thanks!

CradyArt avatar Dec 08 '19 10:12 CradyArt

My 12“ build is flying with INAV 4.1.0. I‘m excited to see & compare the PID and filter settings with you.

pDR8iLQ4go avatar Feb 19 '22 20:02 pDR8iLQ4go

I'm building a 15" x8 with the Matek 765-wing. Running Inav 4.1.. Would definitely be interested in sharing/learning pid and filters for something this size.

CliffAndKajun avatar Mar 01 '22 15:03 CliffAndKajun

@padcom : Is there any progress concerning your parser?

pDR8iLQ4go avatar Mar 31 '22 10:03 pDR8iLQ4go

@pDR8iLQ4go There sure is - just going extremely slow :)

I started by re-doing the visual OSD editor in such a way that it is actually usable. That part is done. The next challenge that I have decided to undertake is to do it as a web application instead of a standalone Electon- or NW.js-based application. The same thing is happening for Bluejay and other hardware (both serial-based and bluetooth based) and I think it is much better than to have to download a new version each time.

Next thing that needs to happen is a library that will allow for communication between the controller and the application. That part is happening, although on a much slower pace. I want to make it at the very least functional to the extend where I can read and write configuration messages (especially the ones pertaining to OSD configuration).

Having both of those in place the next step is to put it all together, create a DB-based backend (I'm thinking Hassura on top of postgresql) to store the settings and a bit of user interface for selecting and then modifying the OSD layout.

After that part is done the next step is to incorporate reading of PID settings and storing/manipulating them the same way.

Hope that makes at least a little bit of sense.

padcom avatar Apr 01 '22 10:04 padcom

Are you continuing somehow? Tried inav 7 on big copter?

petrweigl avatar Mar 03 '24 21:03 petrweigl

@pDR8iLQ4go I am ashamed to say that after giving it some careful considerations and talking to a few very smart people (@DzikuVx included) I have switched my hexa to Ardupilot. Frankly speaking, it should work on INAV just fine. There is no reason for it not to. But...

As of the time of the build, which was already some 4 years ago, INAV lacked a number of features I wanted my beast to have. Features that have already been there to pick up and use instead of programming them in using the programming framework. One such feature was automatic undercarriage that should go up after the altitude is higher than 1m. Another feature that I found very convenient (although a total bitch to configure) was the ability to use multiple sources of data inputs (such as lidar and barometer). You see, the range finder that I use is only good for a specific range of altitudes and above it the drone should smoothly switch to using the barometer.

In Ardupilot this is done using multiple EKFs (Extended Kalman Filters) of which AP has 3 and those can be used depending on (not only) sensor inputs. Well, in fact, it is even more complex (https://ardupilot.org/copter/docs/common-ekf-sources.html) but you get the idea.

The nail in the coffin was alt hold and gyro drift. INAV sucked so much back then in holding the vertical position, I just couldn't use it. With AP it was just working almost out of the box. And it was rock-solid, working almost as good as commercial drones like DJI Phantom.

As mentioned before, AP is a bitch to configure. Their native application (be it Mission Planner or QGroundControl) is so massively unintuitive and the number of possible options is just crazy. I tried to mitigate that by creating an application that would read all the settings, present them in a table and allow them to be edited. I failed to complete it and got stuck with QGroundControl. One good thing that came out of it was the node-mavlink library for connecting to Ardupilot. It has some traction, so I guess it wasn't all in vain.

Since then, I decided to use INAV exclusively for my flying wings (because it just works perfectly, and I know how to set it up), Betaflight for all my minis (2", 3", 5") and Ardupilot for everything else (that includes the rc car that I own).

padcom avatar Mar 04 '24 11:03 padcom

As for inav-settings.org I still pay for the domain, but I am willing to donate it to the project if there is someone brave enough to make some use of it.

padcom avatar Mar 04 '24 11:03 padcom

That‘s funny. Haven’t been flying my build since about a year. But last weekend, I‘ve been flashing ELRS on the R9slim+ of my 12“. To be able to test it, I installed INAV7. Next weekend I‘m able to report if INAV7 can be used on a 12“ hexacopter. Fingers crossed…

pDR8iLQ4go avatar Mar 04 '24 19:03 pDR8iLQ4go

I successfully updated to INAV 7.0.0. Did not spend too much time on testing, but my 12" Hexacopter is flying well with these PIDs:

set mc_p_pitch = 140
set mc_i_pitch = 45
set mc_d_pitch = 70
set mc_p_roll = 120
set mc_i_roll = 40
set mc_d_roll = 60
set mc_p_yaw = 180
set mc_i_yaw = 55
set mc_p_level = 15
set mc_i_level = 10
set dterm_lpf_hz = 30

2024-03-10_diff.txt

pDR8iLQ4go avatar Mar 10 '24 10:03 pDR8iLQ4go

@pDR8iLQ4go thank you for reference, please what values do you have on these? (feed forward slider in PID settings table)

set mc_cd_pitch = ? set mc_cd_roll = ? set mc_cd_yaw = ?

petrweigl avatar Mar 10 '24 11:03 petrweigl

default = 60 each:

cds

pDR8iLQ4go avatar Mar 10 '24 12:03 pDR8iLQ4go

hi can someone share the PID for 15" fpv

Antutank avatar Feb 25 '25 08:02 Antutank

Hii I have 6 inch Deadcat fraem can someone give they PID dump pl

animesh-tech avatar Sep 21 '25 10:09 animesh-tech