Table of Contents

Class CameraPowerModel

Namespace
NominalSystems.Classes
Assembly
NominalSystems.Classes.dll

[Nominal] Creates a power model for a camera, which will draw power from the electrical circuit whenever an image is captured.


[UniverseParent(typeof(Camera))]
public class CameraPowerModel : PowerNodeModel
Inheritance
CameraPowerModel

Constructors

CameraPowerModel()

Construct a motor power model

protected CameraPowerModel()

Fields

CapturePower

The power that the camera will draw when capturing an image.

[Unit(UnitType.WATT)]
public double CapturePower

Field Value

double

PowerBuffer

The power buffer that the camera will draw when capturing an image, which is the sum of the power that the camera will draw when capturing an image.

[Hidden]
public double PowerBuffer

Field Value

double

Methods

OnCreate()

Called when the object is created from the controller and has been attached to the parent object. By this point, it has been registered to the simulation and will run after the constructor.

protected override void OnCreate()

OnLoad(double)

Called after all of the data has been loaded from a save state on this object. This enables any post-load operations to be performed and extra data to be loaded from the metadata.

protected override void OnLoad(double time)

Parameters

time double

[s] The current clock time of the simulation

OnUpdate(double, double)

Called when the object should update from the simulation tick. This will take in a time and a step, where the time is the time of the clock before updating the object.

protected override void OnUpdate(double time, double step)

Parameters

time double

[s] Current time of the simulation before the update

step double

[s] The time-step to update during this tick