inav icon indicating copy to clipboard operation
inav copied to clipboard

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

Open RipperGOT opened this issue 3 years ago • 12 comments

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!!!!

RipperGOT avatar Oct 21 '21 13:10 RipperGOT

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

MrD-RC avatar Oct 21 '21 23:10 MrD-RC

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

RipperGOT avatar Oct 22 '21 02:10 RipperGOT

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.

MrD-RC avatar Oct 22 '21 07:10 MrD-RC

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!

RipperGOT avatar Oct 22 '21 13:10 RipperGOT

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 Jan 09 '22 02:01 stale[bot]

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

RipperGOT avatar Jan 09 '22 18:01 RipperGOT

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

DzikuVx avatar Jan 10 '22 08:01 DzikuVx

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!

RipperGOT avatar Jan 11 '22 05:01 RipperGOT

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

ss8688 avatar May 24 '22 14:05 ss8688

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.)?

Kaggen67 avatar Jul 04 '22 19:07 Kaggen67

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 avatar Oct 15 '23 16:10 druckgott

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

druckgott avatar Nov 02 '23 17:11 druckgott