Skip to content

[WIP] Abstract Actuator - updated

Marcus Oskarsson requested to merge github/fork/rhfogh/abstract_hwobj_7 into master

Created by: rhfogh

Replaces the previous AbstractActuator PR.

  • The previous AbstractActuator class has been renamed AbstractTwoState, with subclasses modified accordingly. It should be refactored by someone in the longer term, probably based on AbstractNState

  • AbstractActuator is now the new supercalass for aall motors and objects with a value. It still needs to be given a set of generally aspplicable states - can anyone help?

  • AbstractMockActuator is an abstract mock object that contains all necessary code for a mock actuator except for setting the mock initial values. Transmission Mockup shows how that will look in practice

  • ExporterMotorExample is a proposal for how ExporterMotor could be written with the new superclass, as an example. I am not competent to rewrite such a hardware-linked class, and I have no way of testing it. Could someone please help out?

  • There is some minor refactoring in BaseHardwareObjects to facilitate use of ConfiguredObject in the future.

Merge request reports