The ADCS (Attitude Determination and Control System) component is responsible for collecting sensor data related to the spacecraft's attitude. Currently, it interfaces with light sensors (VEML6031) to gather visible, infrared, and ambient light data, which can be used for sun sensing and attitude determination.
Usage Examples
The ADCS component is designed to be scheduled periodically to trigger collection of sensor data. It operates as a passive component that responds to scheduler calls.
Typical Usage
The component is instantiated and initialized during system startup.
The scheduler calls the run port at regular intervals.
On each run call, the component:
Iterates through the connected light sensor ports.
Scheduler port that triggers sensor data collection
visibleLightGet
output
Array of ports [6] for getting visible light data from sensors
infraRedLightGet
output
Array of ports [6] for getting infrared light data from sensors
ambientLightGet
output
Array of ports [6] for getting ambient light data from sensors
timeCaller
time get
Port for requesting current system time
tlmOut
telemetry
Port for emitting telemetry
logOut
event
Port for emitting events
logTextOut
text event
Port for emitting text events
Sequence Diagrams
sequenceDiagram
participant Scheduler
participant ADCS
participant LightSensorManager
Scheduler-->>ADCS: run
loop For each sensor (0-5)
ADCS->>LightSensorManager: visibleLightGet
end
loop For each sensor (0-5)
ADCS->>LightSensorManager: infraRedLightGet
end
loop For each sensor (0-5)
ADCS->>LightSensorManager: ambientLightGet
end
Requirements
Name
Description
Validation
Light Sensor Data Collection
The component shall trigger data collection from connected light sensors when run is called
Verify all connected light sensor output ports are called
Periodic Operation
The component shall operate as a scheduled component responding to scheduler calls
Verify component responds correctly to scheduler input