Skip to content

Energy & Power Systems Simulator #12

@RobertPendergrast

Description

@RobertPendergrast

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 CHARGING or DRAINING (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 CHARGING Mode:
      • 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 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.
  • Then we want an output port called getBattery() that sends type float. This port will simply just return the current battery level.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions