-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* unsigned long -> int * Add teensy40 * Add script for raspi setup * Make raspi setup executable * Run with bash * Raspi setup script * Add github action to build base controller for teensy4 * Change folder * typo --------- Co-authored-by: santeriok <[email protected]>
- Loading branch information
1 parent
0aca693
commit 8d4e432
Showing
4 changed files
with
73 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Build base controller | ||
on: | ||
push: | ||
branches: | ||
- "**" | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
build_teensy_40: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cache/pip | ||
~/.platformio/.cache | ||
key: ${{ runner.os }}-pio | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
- name: Install PlatformIO Core | ||
run: pip install --upgrade platformio | ||
|
||
- name: Build PlatformIO Project | ||
run: | | ||
cd diffbot_base/scripts/base_controller | ||
pio run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
# update & upgrade # | ||
sudo apt update | ||
sudo apt upgrade | ||
|
||
sudo apt -y install i2c-tools curl | ||
|
||
# Add i2c support to /boot/firmware/config.txt | ||
# dtparam=i2c0=on | ||
sudo sed -i '/dtparam=i2c0=on/s/^#//g' /boot/firmware/config.txt | ||
|
||
# ROS Noetic setup | ||
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' | ||
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add - | ||
sudo apt -y update | ||
sudo apt -y install ros-noetic-ros-base | ||
|
||
sudo apt -y install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-vcstool \ | ||
python3-rosdep python3-catkin-tools build-essential | ||
|
||
sudo rosdep init | ||
rosdep update | ||
echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc | ||
source ~/.bashrc | ||
|
||
cd ~/catkin_ws | ||
rosdep install --from-paths src --ignore-src -r -y | ||
|
||
catkin build |