Version History¶
v0.10.7¶
Use the reversed direction of hardpoint correction in
MockControlClosedLoop
class.
v0.10.6¶
Add the
MockMessageEvent.write_configuration_files()
and theMockMessageEvent.configuration_file
attribute.Allow the controller to set the configuration file.
v0.10.5¶
Adapt the behaviour that the M2 cell LabVIEW project only reports the summary faults status instead of error code.
Simulate the enabled faults mask.
v0.10.4¶
Fix the rz calculation in
MockControlClosedLoop.hardpoint_to_rigid_body()
.Add the
MockModel.is_force_error_tangent_out_limit()
and do the related check inMockServer._check_error_force()
.
v0.10.3¶
Add the
MockCommand.report_interlock()
to report the interlock event.Update the
MockServer._send_welcome_message()
to send the lost connection error at welcome message.
v0.10.2¶
Add the
Controller.set_control_parameters()
to set the control parameters of closed-loop controller (CLC).Do not check the communication power status (True/False) in
Controller._callback_check_power_status()
because sometimes, the cRIO simulator might put it on even though it should be off theoretically.Allow to change the status of bit value of digital output.
Use the internal annotation instead of importing the typing module.
v0.10.1¶
Adapt the .ts_pre_commit_config.yaml.
v0.10.0¶
Add the ErrorHandler class and support the reading of summary faults status.
Update the MockErrorHandler class to be inherited from ErrorHandler.
In the Python simulator, when the motor power is on, the event of summary faults status will be sent to simulate the event from cell controller.
Update the
MockControlClosedLoop.is_actuator_force_out_limit()
to have the option of using the measured forces.Only trigger the error of limit switch if the open-loop maximum is enabled.
Allow the bypass of state checking in
Controller.clear_errors()
.
v0.9.7¶
Support the mypy.
v0.9.6¶
Fix the bug to run the simulation mode with mock server on summit.
v0.9.5¶
Adapt black v23.1.0.
v0.9.4¶
Calculate the rigid body position based on the hardpoint displacements in
MockModel
.Put the
MockModel.handle_position_mirror()
as a placeholder at this moment.
Need to translate the forward modeling of hardpoint correction first before the realization of this function.
v0.9.3¶
Increase the default timeout from 10 sec to 20 sec in
Controller.power()
.Add the
MockCommand.load_configuration()
andController.load_configuration()
.
v0.9.2¶
Calculate the actuator displacements based on the rigid body movement.
Calculate the rigid body position based on the hardpoint displacements.
v0.9.1¶
Remove the root workaround from Jenkinsfile.
v0.9.0¶
Adapt the ts_tcpip v1.0.0:
Use the LOCALHOST_IPV4 instead of LOCAL_HOST.
Put the
MockServer._connect_state_changed_callback_command()
andMockServer._connect_state_changed_callback_telemetry()
to be asynchronous.
v0.8.2¶
Calculate the hardpoint compensation matrix instead of reading the related file.
v0.8.1¶
Update the
MockCommand.switch_force_balance_system()
to drop the TelemetryOnly from ClosedLoopControlMode event.Reports digital input & output, force balance system status, and open-loop maximum limit when
MockCommand.power()
is called.
v0.8.0¶
Support to reset the actuator forces and steps.
Simulate the inner-loop controller.
Set the closed-loop control mode.
Set the inner-loop control mode.
v0.7.0¶
Move the constants of force limit to submodule.
Add the MockPowerSystem class.
v0.6.2¶
Update the temperature offset.
v0.6.1¶
Calculate the temperature inversion matrix.
Add the status to enableOpenLoopMaxLimit command.
v0.6.0¶
Add the MockErrorHandler class.
Add the enums of LimitSwitchType and MockErrorCode.
Add the following events:
openLoopMaxLimit
limitSwitchStatus
v0.5.2¶
Support the EUI specifc items:
Switch digital output command.
Configuration event.
Tangent force error telemetry.
Telescope mount assembly (TMA) inclinometer angle telemetry.
Raw power status telemetry.
v0.5.1¶
Slow down the pace to udpate the actuator steps according to forces in MockServer to decrease the CPU usage.
v0.5.0¶
Add the ControllerCell class.
v0.4.4¶
Ignore and log the errors when run the open-loop control or script.
v0.4.3¶
Properly reports cause when connecting to non-existing host.
Increase test timeouts as running those on TSSW Jenkins takes more time than expected (due to limited container resources).
v0.4.2¶
Add the .pre-commit-config.yaml.
Support the isort.
v0.4.1¶
Fix the conda build.
v0.4.0¶
Add the MockControlClosedLoop class.
Use the TS_CONFIG_MTTCS_DIR to get the configuration files.
v0.3.0¶
Add the MockControlOpenLoop class.
Support the mock commands of engineering user interface (EUI):
Set mirror home
Move actuators (under the open-loop control)
v0.2.0¶
Reorganize the project to have the mock module.
Add the MockScriptEngine class.
Publish the documents.
Support the mock commands of engineering user interface (EUI):
Switch command source
Run script
Reset breakers
Reboot controller
Enable open loop maximum limits
Save mirror position
v0.1.0¶
Migrate the codes from ts_m2.
Rename Model class to Controller class.