iNavFlight / inav

INAV: Navigation-enabled flight control software
https://inavflight.github.io
GNU General Public License v3.0
3.15k stars 1.48k forks source link

Lua script Inav CONF-- PID,VTX, RTH, rates... #7526

Open RipperGOT opened 3 years ago

RipperGOT commented 3 years ago

Could a script like Betaflight be created or adapted? It would be very practical! I have tried various versions of the BF Lua but they don't work with Inav. 😢

Thanks!!!!

MrD-RC commented 3 years ago

I guess this is for PID tuning? Can’t you use adjustments? It seems better that a LUA script to me.

RipperGOT commented 3 years ago

Sorry for not specifying more! Not only for the PIDs, if not, for more parameters. I mean like Betaflight's LUA Script: PID, VTX, GPS rescue, rates, etc.

I think it is more comfortable to do it from the radio and not from the goggles

https://github.com/betaflight/betaflight-tx-lua-scripts

MrD-RC commented 3 years ago

You can do all that, except GPS rescue, using adjustments and/or the programming.

GPS Rescue isn’t in iNav, as it has proper RTH.

PID and rates can be tuned with adjustments. Which would be way quicker. Just see the reaction, make an adjustment, and try again. Rather than see the reaction, land, take off your goggles, update the via LUA, put your goggles back on, take off, and try again. Tuning would be much quicker.

For VTx power, you can use adjustments. Or better still is the programming.

RipperGOT commented 3 years ago

I know GPS Rescue isn’t in iNav, I have only used their terminology.

In my opinion, and for me, it is more comfortable to do it from the radio. For example, during the dead time that the drone is searching for satellites. It is another option to get more out of the radio. Surely there are more people who would like this option. Not only for people who use multi, also for those who use airplanes.

About taste, there's nothing written! 😅

I change again gps recue by RTH, so there is no confusion!

stale[bot] commented 2 years ago

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.

RipperGOT commented 2 years ago

Well it seems that my proposal does not have much support 😢

DzikuVx commented 2 years ago

@RipperGOT proposal is cool, but it fails to answer one very important question: who will do it?

RipperGOT commented 2 years ago

Of course @DzikuVx !!!

Please guys, don't get me wrong, I'm not trying to force anyone. If I knew how to do it, I would be delighted to do it myself. But my knowledge stayed with Arduino, and it wasn't very good either! 😅 I help trying what I can, I leave the other for the masters!!!!

I thought it would be very easy to migrate for someone with knowledge. So it was a simple proposal!

ss8688 commented 2 years ago

This is good,and I hope someone can done it.

Kaggen67 commented 2 years ago

I'm also for this. Do any developer know, if one is to try to make this, if all the necessary API functions needed are available to use in LUA or do INAV itself need to be hacked? I.o.w. is a LUA script all that is needed for this to be done?

And do one need different code/solutions for different protocols (like S.BUS, Crossfire. etc.)?

druckgott commented 1 year ago

Im. Also. For. This i use this many Times in bf and its Total. Perfekt

Here some body did something https://github.com/betaflight/betaflight-tx-lua-scripts/issues/168

druckgott commented 11 months ago

I copyed betaflight. My problem is that I do not know how to implement the msp v2 which is used in Inav. Read out values from MSP1 list works https://github.com/iNavFlight/inav/blob/master/src/main/msp/msp_protocol.h But we need to update the script that this also works https://github.com/iNavFlight/inav/blob/master/src/main/msp/msp_protocol_v2_inav.h

My version is here: https://github.com/druckgott/inav-tx-lua-scripts