INAV remapping RESOURCEs in 10 minutes (or add PINIO)

I would like to use realPit for turning off my VTX on crawler if I’m driving LOS so save some battery and heat
There’s currently not used DAC pin on MatekF722 STD board which can be used for PINIO
It is quite easy on Betaflight:

resource PINIO 1 A04
set pinio_box = 40,255,255,255

But as INAV can’t change RESOURCE in CLI, its necessary to modify source codes and upload hex to the board with modified RESOURCES.
This guide showing how it is possible to edit and compile INAV source code. In my case it’s activating PINIO but same method is used for RESURCE remapping.

you can get compiled hex for MATEKF722STD here:

inav_2.6.1_MATEKF722

text used in guide:

https://github.com/iNavFlight​

copy source to
c:/inav

make your changes/change resource…

windows features
enable windows subsytem for linux

reboot

store
Ubuntu 20_04
Launch Ubuntu admin

sudo apt update
sudo apt-get install git
sudo apt-get install make
sudo apt-get install cmake
sudo apt-get install ruby

cd /mnt/c/inav
mkdir build
cd build
cmake ..
generating done

make MATEKF722

regedit
Find HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss{GUID}\Flags
Change Flags from 7 to 5

restart

cd /mnt/c/inav
cd build
cmake ..
generating done

make MATEKF722

5 thoughts on “INAV remapping RESOURCEs in 10 minutes (or add PINIO)

  1. Hi,

    I just curious how to build custom vtx Frequency in Inav, Can u Help me mate?

    I used Windows 7 , how can I possibly doing that?

    Thanks so much
    Ditto

  2. Hi,

    I just have a new board which called Recewhoop and can’t find F/W for iNAV but the config is very similar to PIKOBLX just need re-config the ports.
    This video help me a lot and I just finished the rebuilding.

    thanks again

Leave a Reply

Your email address will not be published. Required fields are marked *