Skip to main content
Version: 1.5.0

Methods

Instantiation

SdkAPI

Create a new Spire Linux Agent Client.

from oort_sdk_client import SdkApi

agent = SdkApi()

TfrsGet

Gets the most recent time and position reading from TFRS.

from oort_sdk_client.models import TfrsResponse

resp = agent.get_tfrs()

print("TFRS time reading is {}".format(resp.utc_time))

Return value

TypeDescription
TfrsResponseContains the TFRS reading

AdcsGet

Gets the most recent spacecraft attitude reading from ADCS.

from oort_sdk_client.models import AdcsResponse

resp = agent.get_adcs()

print("ADCS lat, lon is {}, {}".format(resp.hk.lat_deg, resp.hk.lon_deg))

Return value

TypeDescription
AdcsResponseAdcsResponse Object

AdcsCommand

Send a command to ADCS

from oort_sdk_client.models import AdcsCommandRequest

request = AdcsCommandRequest(
command="NADIR", aperture="IPI")

response = agent.command_adcs(request)
print("Response status: {}".format(response.status))
if response.status != "OK":
print("Reason: {}".format(response.reason))
else:
print("Command mode: {}".format(response.mode))

Arguments

TypeDescription
AdcsCommandRequestAdcsCommandRequest Object

Return value

TypeDescription
AdcsCommandResponseResult of the command