-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
On our flatsat we won't have solar pannels until the very end of the project, meaning right now we need a way to simulate the satellite's power systems. The scope of this system is to generate a very basic simulator for the EPS that will emulate how the satellite loses and gains power in space. This is important for testing our other components like the mode manager! Here's what this entails:
- Make a new passive component named
EPS_Sim - Have the component keep track of a the "battery level" with a variable
- Include a command to set the battery level.
- We also want a command to turn the sim on or off
- Include a command to set the battery status as either
CHARGINGorDRAINING(maybe use an enum?) - Create an input port to communicate with the 1Hz rate group with the following logic
- If the sim is running:
- If the sim is in
CHARGINGMode: - Each tick increase the battery level by 0.1
- If the sim is in 'DRAINING' Mode:
- Each tick decrease the battery level by 0.1
- If the sim is in
- If the sim is not running, do nothing
- You also should set limits to the battery level to avoid >100 or < 0 to keep this semi realistic.
- Another thing to consider is making the delta (0.1) configurable as a parameter.
- If the sim is running:
- Then we want an output port called getBattery() that sends type float. This port will simply just return the current battery level.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels