Resource

class olaf.Resource[source]

OreSat Linux app resource. Used to setup OD callbacks in a common, isolated environment.

All the on_* members can be overridden as needed.

node

The app’s CANopen node. Set to None until start() is called.

Type:

Node or MasterNode

start(node: Node)[source]

App will call this to start the resource. This will call self.on_start().

end()[source]

App will call this to stop the resource. This will call self.on_end().

on_start() None[source]

Start the resource.

on_end() None[source]

Called when the program ends and if the resources fails. Should be used to stop hardware and can be used to zero/clear resource’s data in object dictionary as needed.