|
Hermes
Simulation Orchestration Platform for Aerospace
|
Public Member Functions | |
| None | __init__ (self, str module_name, SharedMemoryManager shm) |
| None | stage (self) |
| None | step (self, float dt) |
| None | reset (self) |
Protected Attributes | |
| _name = module_name | |
| _shm = shm | |
| float | _state = 0.0 |
Simple physics module with basic dynamics. Computes: output = input * 2 + state State accumulates: state += input * dt
| None hermes.modules.mock_physics.MockPhysicsModule.__init__ | ( | self, | |
| str | module_name, | ||
| SharedMemoryManager | shm ) |
Initialize mock physics module.
Args:
module_name: Hermes module name (used as signal prefix)
shm: Shared memory manager
| None hermes.modules.mock_physics.MockPhysicsModule.reset | ( | self | ) |
Reset to initial state.
| None hermes.modules.mock_physics.MockPhysicsModule.stage | ( | self | ) |
Initialize signals to zero.
| None hermes.modules.mock_physics.MockPhysicsModule.step | ( | self, | |
| float | dt ) |
Execute physics step.
|
protected |
|
protected |
|
protected |