No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
src
.gitignore
Cargo.toml
LICENSE
README.md

README.md

sleeper

Autonomous drift car experiment

  1. Visit http://rustup.rs

  2. On Raspberry Pi, PWM hardware is usually for audio out. Some reconfig (and don't use audio at the same time..):

Instructions at https://docs.golemparts.com/rppal/0.9.0/rppal/spi/index.html which are, briefly: A. Add dtoverlay=pwm-2chan to /boot/config.txt B. Append the following snippet to /etc/udev/rules.d/99-com.rules. Reboot the Raspberry Pi afterwards.

SUBSYSTEM=="pwm*", PROGRAM="/bin/sh -c '
chown -R root:gpio /sys/class/pwm && chmod -R 770 /sys/class/pwm;
chown -R root:gpio /sys/devices/platform/soc/.pwm/pwm/pwmchip &&
chmod -R 770 /sys/devices/platform/soc/.pwm/pwm/pwmchip
'"

  1. sudo apt install libatlas-base-dev

  2. pip3 install tensorflow

  3. (WIP Untested) From Linux you can cross-compile to Raspberry Pi if you: rustup target add armv7-unknown-linux-gnueabihf sudo apt-get install gcc-4.7-multilib-arm-linux-gnueabihf cargo build --target=armv7-unknown-linux-gnueabihf