Skip to content

WIT-IEEE-MATE-ROV/WU25

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WU25

2025 MATE ROV Competition Code

Install

  1. Install ROS 2 Jazzy
  2. Create a ROS 2 workspace
  3. cd [YOUR_WORKSPACE]
  4. source install/local_setup.bash
  5. cd [YOUR WORKSPACE]/src
  6. git clone https://github.com/WIT-IEEE-MATE-ROV/WU25.git --recurse-submodules

Install wiringOP

  1. Run sudo ./build in wiringOP directory

Install libgpiod

  1. sudo apt-get install autotools-dev && sudo apt-get install autoconf && sudo apt-get install dh-autoreconf && sudo apt install autoconf-archive
  2. cd libgpiod
  3. sudo ./autogen.sh --enable-tools=yes
  4. sudo make && sudo make install
  5. I forgot.
  6. Profit!

Build

  1. cd [YOUR WORKSPACE] (Don't build inside the package)
  2. colcon build

Enabling spidev (Orange Pi 5)

  1. Copy device tree blob file from firmware files

dtc -I dtb -O dts -o opi5.dts /usr/lib/firmware/6.1.0-1025-rockchip/device-tree/rockchip/rk3588s-orangepi-5.dtb

  1. Edit opi5.dts to enable the spi4 peripheral

Find node spi@fecb0000 in opi5.dts and change the status property to "okay"

  1. Turn opi5.dts into a .dtb

dtc -I dts -o ./rk3588s-orangepi-5.dtb opi5.dts

  1. Replace the device tree blob file with the modified version

sudo cp rk3588s-orangepi-5.dtb /usr/lib/firmware/6.1.0-1025-rockchip/device-tree/rockchip/rk3588s-orangepi-5.dtb

  1. Reboot the Orange Pi 5

Now hopefully /dev/spidev4.1 shows up. If it doesn't you might need to run sudo modprobe spidev to load the module.

About

2025 MATE ROV Competition Code to win worlds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages