/// <summary> /// Initializes a new instance. /// </summary> /// <param name="position">Indicates the position of the clyinder (front, left, right).</param> public DoorCylinder(Position position) : base(position) { DoorCylinderIsStuckFault.Name = $"{Position}DoorCylinderIsStuck"; _latchingBoxClosedOne = new LatchingBox(4, 3, $"{Position}DoorCylinderLatchingBoxClosedOne"); _latchingBoxClosedTwo = new LatchingBox(4, 3, $"{Position}DoorCylinderLatchingBoxClosedTwo"); }
/// <summary> /// Initializes a new instance. /// </summary> /// <param name="position">Indicates the position of the gear cylinder (front, left, right).</param> /// <param name="startState">Indicates the initital state of the gear cylinder.</param> public GearCylinder(Position position, GearStates startState) : base(position) { _stateMachine = startState; GearCylinderIsStuckFault.Name = $"{Position}GearCylinderIsStuck"; _latchingBoxExtended = new LatchingBox(8, 4, $"{Position}GearCylinderLatchingBoxExtended"); _latchingBoxRetracted = new LatchingBox(8, 4, $"{Position}GearCylinderLatchingBoxRetracted"); }