sleeper
Autonomous drift car experiment
-
Visit http://rustup.rs
-
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
'"
-
sudo apt install libatlas-base-dev
-
pip3 install tensorflow
-
(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