Pycubed-Mini Drivers
CircuitPython driver for PyCubed-Mini
- class pycubed.device(fget=None)[source]
Based on the code from: https://docs.python.org/3/howto/descriptor.html#properties Attempts to return the appropriate hardware device. If this fails, it will attempt to reinitialize the hardware. If this fails again, it will raise an exception.
- class pycubed._Satellite[source]
- property acceleration
return the accelerometer reading from the IMU in m/s^2
- property battery_voltage
Return the battery voltage _cubesat._vbatt.value converts the analog value of the board.BATTERY pin to a digital one. We read this value 50 times and then later average it to get as close as possible to a reliable battery voltage value
- async burn(dutycycle=0.5, duration=1)[source]
Activates the burnwire for a given duration and dutycycle.
- coildriver_vout(driver_index, projected_voltage)[source]
Set a given voltage for a given coil driver
- property gyro
return the gyroscope reading from the IMU in deg/s
- property magnetic
return the magnetometer reading from the IMU in µT
- property sun_vector
Returns the sun pointing vector in the body frame
- property temperature_cpu
return the temperature reading from the CPU in celsius
- property temperature_imu
return the thermometer reading from the IMU in celsius