-
Notifications
You must be signed in to change notification settings - Fork 0
Satellite Software
yashikabatra15 edited this page Mar 9, 2022
·
31 revisions
- Can't read from the IMU:
As suggested try changing the address from
0x69
to0x68
in line 131 oflib/pycubedmini.py
self.IMU = bmx160.BMX160_I2C(self.i2c1,address=0x69)
PyCubed Beep-Sat Basic Guide can be found here.
- Download the latest Beep-Sat code from its GitHub Repo. Either download the zip or if you're familiar with git, fork & clone the repo.
- (Optional) With your PyCubed board plugged into your computer, backup your PYCUBED drive by copying its contents to a directory on your computer.
- Copy the files from
/software_example_beepsat/basic/
to yourPYCUBED
drive, overwriting any files when prompted.
- Copy the files from the most recent
flight-software lib
directory to yourPYCUBED
driver, overwriting any files when prompted. - Change the import statement
from pycubed import cubesat
tofrom pycubedmini import pocketqube as cubesat
. This ensures that you are importing the correctSatellite
object frompycubedmini.py
. - Look at the first bullet point under troubleshooting if applicable.
- Open a serial terminal.
At this point, you should get error messages on your terminal telling you that certain attributes being accessed by Tasks
do not exist for your Satellite
object. This is because there are a lot of initializations done on the pycubed.py Satellite
object that are not part of the pycubedmini.py
file. In order to fix this:
- Copy the following lines (taken from the
__init__
function inpycubed.py
) into the__init__
function inpycubedmini.py
:self.data_cache={}
self.filenumbers={}
self.vlowbatt=6.0
self.debug=True
- Save and observe the output as the beep-sat conducts its mission.
- After observing the output in the terminal for a few moments, start working through understanding each task by stepping through the code breakdown discussion (below) while opening and playing with its respective file in
/Tasks/task_filename.py.
- Can't read from the IMU:
As suggested try changing the address from
0x69
to0x68
in line 131 oflib/pycubedmini.py
self.IMU = bmx160.BMX160_I2C(self.i2c1,address=0x69)