Menu:
- IMU waiting for calibration
- Manually entering virtualenv
- Replacing fuses
- Checking and updating date/time on BBB
IMU waiting for calibration
Sometimes when the Bike class is intialised in Python, the IMU doesn’t begin its calibration process.
If you see the text: Waiting for calibration
appearing endlessly, you have encountered this bug.
The solution is to reset the Arduino by pressing the reset button. After you press the button, the IMU will calbirate (so don’t touch the bike or the box after you push the button.
You will notice that within several seconds the python code continues.
Manually entering virtualenv
If for some reason the login script which starts the virtual environment doesn’t run, here is how to manually enter the virtual environment which contains all of the dependencies for the code.
Using pipenv (the easiest option):
cd ~/chalmersbike
pipenv shell
If this does not work, this is the procedure to manually enter the virtual environment:
source ~/.virtualenvs/chalmersbike-zI2YTWPT/bin/activate
Replacing fuses
There are four fused terminal blocks inside the enclosure. In order to replace them, open the plastic hinged door and insert the new fuse.
-
Low power electronics:
3A
-
STEER:
10A
-
DRIVE:
10A
-
BRAKE:
10A
Checking and updating date/time on BBB
When you run a test, you want the logfile to have the correct date and time. When the Beaglebone is switched off, it does not keep track of the time so you will need to either:
-
Connect the Beaglebone to the internet
-
Manually set the date and time
You can check the current time by typing:
date
How to manually set the date and time
To set the day: sudo date --set 1998-11-02
(In the format YYYY-MM-DD)
To set the time: sudo date --set 21:08:00
(In the format HHMMSS using 24 hour clock)
How to kill tasks
If you want to end a task
sudo htop
Enter password
temppwd
Find the task that you want to kill by using the up/down arrows. This example will assume it is a python script that hasn’t terminated properly.
Once the task has been selected
Press
F9
Press
ENTER
(on the left you will see “SIGTERM” highlighted)