Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Building from source using a docker image
sudo apt-get update -ysudo apt-get install -y i2c-toolssudo usermod -a -G i2c usersudo suecho 'KERNEL=="i2c-[0-9]*", GROUP="i2c"' >> /etc/udev/rules.d/10-local_i2c_group.rulesi2cdetect -y 5


Step-by-step instructions on how to quickly set up your NavQPlus


Username: user
Password: user ./uuu -lsusb./uuu.exe -lsusb.uuu -b emmc_all navqplus-image-<version>.wic .uuu.exe -b emmc_all navqplus-image-<version>.wic Username: user
Password: user ssh user@imx8mpnavq.localssh user@imx8mpnavq.localecho -e "d\n2\nn\np\n2\n196608\n\n\nw" | sudo fdisk /dev/mmcblk2 && sudo resize2fs /dev/mmcblk2p2 echo -e "d\n2\nn\np\n2\n196608\n\n\nw" | sudo fdisk /dev/mmcblk1 && sudo resize2fs /dev/mmcblk1p2 usermod -l <new_username> user
mv /home/user /home/<new_username>passwd






Changing the NavQPlus firmware and booting from SD Card or EMMC flash
sudo nmcli device wifi connect <network_name> password "<password>"sudo nmcli device wifi connect <network_name> password "<password>"sudo nmcli device wifi listssh <username>@<hostname>.localssh <username>@<hostname>sudo apt install python3-opencvcap = cv2.VideoCapture('v4l2src device=/dev/video3 ! video/x-raw,framerate=30/1,width=640,height=480 ! appsink', cv2.CAP_GSTREAMER)video/x-raw, format=YUY2, width=2592, height=1944, framerate=8/1
video/x-raw, format=YUY2, width=1920, height=1080, framerate={ (fraction)15/1, (fraction)30/1 }
video/x-raw, format=YUY2, width=1280, height=720, framerate={ (fraction)15/1, (fraction)30/1 }
video/x-raw, format=YUY2, width=1024, height=768, framerate={ (fraction)15/1, (fraction)30/1 }
video/x-raw, format=YUY2, width=720, height=576, framerate={ (fraction)15/1, (fraction)30/1 }
video/x-raw, format=YUY2, width=720, height=480, framerate={ (fraction)15/1, (fraction)30/1 }
video/x-raw, format=YUY2, width=640, height=480, framerate={ (fraction)15/1, (fraction)30/1 }
video/x-raw, format=YUY2, width=320, height=240, framerate={ (fraction)15/1, (fraction)30/1 }
video/x-raw, format=YUY2, width=176, height=144, framerate={ (fraction)15/1, (fraction)30/1 }ssh user@imx8mpnavq.localssh user@<NavQ+'s IP address>sudo dd if=navqplus-image-{vX.X}.wic of=/dev/sdX bs=1M status=progress oflag=syncsudo dd if=navqplus-image-{vX.X}.wic of=/dev/diskX bs=1m status=progress oflag=sync./uuu[.exe] -lsusbsudo ./uuu navqplus-image-{vX.X}_.zipsudo ./uuu[.exe] -b emmc_all navqplus-image-{vX.X}.bin -flash_evk navqplus-image-{vX.X}.wicsudo apt-get -y install lighttpdsudo lighttpd-enable-mod cgisudo lighttpd-enable-mod fastcgisudo nano /etc/lighttpd/lighttpd.confserver.document-root = “/var/www/html”server.document-root = “/var/www”sudo /etc/init.d/lighttpd stopsudo /etc/init.d/lighttpd startsudo /etc/init.d/lighttpd stopgit clone https://github.com/eslamfayad/Hover_Games3_E.F.gitsudo cp -r "yourdirectory"/Hover_Games3_E.F/ROBOT_WEB_SERVER/images /var/www
sudo cp -r "yourdirectory"/Hover_Games3_E.F/ROBOT_WEB_SERVER/cgi-bin /var/www
sudo cp "yourdirectory"/Hover_Games3_E.F/ROBOT_WEB_SERVER/index.html /var/www






gst-launch-1.0 -v v4l2src num-buffers=1 device=/dev/video3 ! jpegenc ! filesink location=capture.jpegsudo ip link set can0 up type can bitrate 125000
sudo ipl ink set can1 up type can bitrate 125000











gst-launch-1.0 v4l2src device=/dev/video3 ! imxvideoconvert_g2d ! "video/x-raw, height=640, width=480, framerate=30/1" ! vpuenc_h264 ! avimux ! filesink location='/home/user/video.avi'sudo ip link set can0 up type can bitrate 500000 dbitrate 2000000 fd on
sudo ip link set can1 up type can bitrate 500000 dbitrate 2000000 fd on

i2cdetect -y 5sudo usermod -a -G i2c user





















Multiple UARTs are available on NavPlus













USE_GPU_INFERENCE=0 ./label_image --external_delegate_path=/lib/libvx_delegate.so -m mobilenet_v1_1.0_224_quant.tflite -i grace_hopper.bmp -l labels.txtsudo inputattach --fsia6b /dev/ttymxc2 &apt remove unattended-upgradessudo apt install nanosudo nano /etc/hostname compcom42 sudo nano /etc/hosts
…
127.0.1.1 compcom42
Add the additional entries
192.168.42.11 compcom<id>
192.168.42.5 navq<id>-d2x
192.168.42.2 t1eth8
192.168.42.6 d2xmodem
192.168.42.21 radar1
192.168.42.22 radar2
192.168.42.23 radar3 nmcli con show nmcli con mod "Wired connection 2"
ipv4.addresses "192.168.42.11/24"
ipv4.gateway "IP_GATEWAY" (needs to be blank on static ip)
ipv4.dns "1.1.1.1,8.8.8.8"
ipv4.method "manual" 

sudo nmtuisudo rm /etc/resolv.confnameserver 8.8.8.8[main]
dns=nonegit clone https://github.com/eProsima/Micro-XRCE-DDS-Agent
cd Micro-XRCE-DDS-Agent
mkdir build && cd build
cmake ..
make
sudo make installhttps://github.com/NXPHoverGames/nxp_install$ mkdir -p ~/git/ros2/src
$ cd ~/git/ros2/src
$ git clone https://github.com/NXPHoverGames/sim_ignition_bringup.git -b RoverGamesDemo
$ cd ..
$ colcon build --symlink-install
$ echo "source /home/$USER/git/ros2/install/setup.bash" >> ~/.bashrc
$ source ~/.bashrc$ mkdir -p ~/git/ros2/src
$ cd ~/git/ros2/src
$ git clone https://github.com/NXPHoverGames/ros2_orchestrator.git -b NavQPlusPX4Demo
$ cd ..
$ colcon build --symlink-install
$ echo "source /home/$USER/git/ros2/install/setup.bash" >> ~/.bashrc
$ source ~/.bashrcros2 launch ros2_orchestrator orchestrate.launch.py
source /home/$USER/git/ros2/install/setup.bashhttps://github.com/dirksavage88/meta-ddscolcon build --symlink-install./MicroXRCEAgent udp4 -p 2019microdds_client start -t udp -h 10.0.0.3 -p 2019mkdir -p ~/ros2_ws/srccd ~/ros2_ws/srcros2 pkg create --build-type ament_python py_pubsubcd ~/ros2_ws/src/py_pubsub/py_pubsubwget https://raw.githubusercontent.com/ros2/examples/humble/rclpy/topics/minimal_publisher/examples_rclpy_minimal_publisher/publisher_member_function.pywget https://raw.githubusercontent.com/ros2/examples/humble/rclpy/topics/minimal_subscriber/examples_rclpy_minimal_subscriber/subscriber_member_function.pynano package.xml<exec_depend>rclpy</exec_depend>
<exec_depend>std_msgs</exec_depend>nano setup.pyentry_points={
'console_scripts': [
'talker = py_pubsub.publisher_member_function:main',
'listener = py_pubsub.subscriber_member_function:main',
],
},cd ~/ros2_wsrosdep install -i --from-path src --rosdistro humble -ycolcon build --packages-select py_pubsubsource install/setup.bashros2 run py_pubsub talker[INFO] [minimal_publisher]: Publishing: "Hello World: 0"
[INFO] [minimal_publisher]: Publishing: "Hello World: 1"
[INFO] [minimal_publisher]: Publishing: "Hello World: 2"
[INFO] [minimal_publisher]: Publishing: "Hello World: 3"
[INFO] [minimal_publisher]: Publishing: "Hello World: 4"
...ros2 run py_pubsub listener[INFO] [minimal_subscriber]: I heard: "Hello World: 10"
[INFO] [minimal_subscriber]: I heard: "Hello World: 11"
[INFO] [minimal_subscriber]: I heard: "Hello World: 12"
[INFO] [minimal_subscriber]: I heard: "Hello World: 13"
[INFO] [minimal_subscriber]: I heard: "Hello World: 14"

07/2023
Objective: publish messages from ROS2, subscribe on UCANS32K1 and drive the APA102 LED Board connected to UCANS32K1.

wget https://raw.githubusercontent.com/rudislabs/nxp_install/main/install.sh
chmod +x install.sh
./install.sh










Connecting a small display to the NavQPlus to show information such as IP address and link status.
sudo apt update
sudo apt upgrade
sudo apt install gitmkdir -p ~/git/cognipilot/
cd ~/git/cognipilot/
git clone git@github.com:CogniPilot/helmet.git
cd helmet
./scripts/install.sh -f dream/mrbuggy3.yamlsource ~/.bashrc
source ~/.profilecd ~/git/cognipilot/ws/cerebri/app/mrbuggy3
west build -b mimxrt1062_fmurt6 -pwest flashminicom -D /dev/<device_name> -b 115200sudo apt update
sudo apt upgrade
sudo apt install ros-humble-actuator-msgs
mkdir -p ~/git/cognipilot/src
cd ~/git/cognipilot/src
git clone git@github.com:CogniPilot/synapse_ros.git
git clone git@github.com:CogniPilot/synapse_msgs.git
git clone git@github.com:CogniPilot/synapse_protobuf.git
git clone git@github.com:CogniPilot/synapse_tinyframe.git
cd ~/git/cognipilot
colcon build --symlink-installsudo vi ~/.net.sh
``` (Add the following lines in ~/.net.sh)
#!/bin/bash
sudo ethtool -s eth0 master-slave forced-slave
sudo ifconfig eth0 192.0.2.2 netmask 255.255.255.0
```echo "bash /home/$USER/.net.sh" >> ~/.bashrc
source ~/.bashrcros2 run joy joy_node --ros-args -r /joy:=/cerebri/in/joy
cd ~/git/cognipilot/install
source setup.bash
ros2 launch synapse_ros synapse_ros.launch.pygit clone -b pr-ucan-pca9685 https://github.com/px4/px4-autopilot.git --recursive PX4-Autopilot-pr-ucan-pca9685.
cd PX4-Autopilot-pr-ucan-pca9685
git pull
make nxp_ucans32k146_pca9685 menuconfigmake nxp_ucans32k146_pca9685
// output: build/nxp_ucans32k146_default/deploy/34.bin// start jlink.exe.
connect
// specify the following:
// device: s32k146;
// target interface: s (which stands for swd);
// interface speed: 1000 khz (recommended);
loadbin <path to 34.bin> 0x6000
// quit jlink tools by typing 'q'.sudo ip link set can0 down
sudo ip link set can0 up type can bitrate 1000000 dbitrate 4000000 loopback off fd on fd-non-iso off restart-ms 100mkdir -p ~/git/ros2/src
cd ~/git/ros2/src
git clone https://github.com/NXPHoverGames/ros2_orchestrator.git -b NavQPlusPX4Democd ~/git/ros2
colcon build --symlink-installecho "source /home/user/git/ros2/install/setup.bash" >> ~/.bashrc
source ~/.bashrc
ros2 launch ros2_orchestrator orchestrate.launch.py


sudo pip install smbus2 luma.oled luma.core pillow # installing prerequisites.
cd ~
git clone git@github.com:NXPHoverGames/NavQPlus-apps.git # cloning the repo.
cd NavQPlus-apps/ssd1306_oledsudo mv ssd1306_interface_status@.service /etc/systemd/system
sudo systemctl daemon-reload
sudo systemctl start $(systemd-escape --template ssd1306_interface_status@.service "<interface> <display width> <display height>")
sudo systemctl status $(systemd-escape --template ssd1306_interface_status@.service "<interface> <display width> <display height>")sudo systemctl start $(systemd-escape --template ssd1306_interface_status@.service "usb0 128 32")sudo systemctl start $(systemd-escape --template ssd1306_interface_status@.service "usb0 128 64")sudo systemctl stop $(systemd-escape --template ssd1306_interface_status@.service "<interface> <display width> <display height>")sudo ifconfig <interface name> up
sudo ifconfig <interface name> down

