Methods
Instantiation
SdkAPI
Create a new Spire Linux Agent Client.
- Python
from oort_sdk_client import SdkApi
agent = SdkApi()
TfrsGet
Gets the most recent time and position reading from TFRS.
- Python
from oort_sdk_client.models import TfrsResponse
resp = agent.get_tfrs()
print("TFRS time reading is {}".format(resp.utc_time))
Return value
Type | Description |
---|---|
TfrsResponse | Contains the TFRS reading |
AdcsGet
Gets the most recent spacecraft attitude reading from ADCS.
- Python
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
Type | Description |
---|---|
AdcsResponse | AdcsResponse Object |
AdcsCommand
Send a command to ADCS
- Python
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
Type | Description |
---|---|
AdcsCommandRequest | AdcsCommandRequest Object |
Return value
Type | Description |
---|---|
AdcsCommandResponse | Result of the command |