Monster Borg cant start script on start
Forums:
i have been able to use the run once command. This allows the robot to drive forwards and back but cant swap back and forth with tank mode.
i followed the instructions to start the scri-p on start-up but nothing happens and i get no errors. any ideas?
- Log in to post comments


piborg
Mon, 12/06/2021 - 12:01
Permalink
Tank steering and startup
The tank mode controls are a little unusual and work like this:
When released MonsterBorg will resume normal mode.
Fully left / right will be spinning on the spot.
Smaller amounts will still have some forward / backward motion.
Pushing down reverses the direction, so generally you want to push up.
So to spin right (clockwise) on the spot you:
Debugging the startup can be tricky. The first thing to do is check that the command will work as intended.
cd //home/pi/monsterborg/runMonsterJoy.shIf this works then the problem is likely with how it is being started. If it fails to run then the problem is with the script itself.
CougarTG
Tue, 12/07/2021 - 11:17
Permalink
Debugging
Still cant get the script to run on start up could you send instructions.
And I get a Failed reading the driver fault state for motor #1
Failed reading the driver fault state for motor #2
This happens after a while. I am using a PS3 Controller
piborg
Tue, 12/07/2021 - 15:50
Permalink
Debugging startup
So the script ran successfully using these commands:
If so then either the script is not being started at all, or possibly is starting too early.
The first thing to check is that you added the line before the
exit 0line, otherwise it will not be run. For example:If it still does not work then remove it from rc.local and try using crontab instead: https://www.circuitbasics.com/starting-programs-automatically-using-cron...
The line you will need this time is: