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.

Parameters
  • dutycycle (float) – The dutycycle of the burnwire, between 0 and 1

  • duration (float) – The duration of the burn, in seconds

Returns

True if the burn was successful, False otherwise

Return type

bool

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

incr_logfail_count()[source]

increment logfail count in non-volatile memory (nvm)

property magnetic

return the magnetometer reading from the IMU in µT

reset_boot_count()[source]

reset boot count in non-volatile memory (nvm)

reset_logfail_count()[source]

reset logfail count in non-volatile memory (nvm)

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

timeon()[source]

return the time on a monotonic clock