I have a RaspberryPi 3 with a BrickPi 3, and I’m trying to build a lego robot that I can control with a Playstation 3 remote. I have performed the following steps, and I’m having issues getting my program to automatically run after startup.
- I connected the PS3 remote to the Raspberry PI (reference HowTo article); this was successful.
- Wrote a python program to change 4 EV3 LEGO motors, based on the PS3 values; this was successful.
- Then I tried to edit the “/etc/rc.local” file, to automatically run my program after startup (reference HowTo article). The following is what I entered in my rc.local, and I am not getting a log.txt file either.
sudo python /home/pi/Desktop/BattleBot/FlagBattleBot.py & /home/pi/Desktop/BattleBot/log.txt 2>&1
Any and all help is greatly appreciated.
Clint