johanmazoyer / Asterix

https://asterix-hci.readthedocs.io/
2 stars 0 forks source link

Votge vectors now inlcude the inactive DMs actuators #174

Closed johanmazoyer closed 2 months ago

johanmazoyer commented 2 months ago

DMs that are declared on the Testbed during initialization but marked as inactive (DMXX_active = False in parameter file) are still accounted in the vector of voltages sent to the DMs. (DMvotage = [DM1 voltage, DM3 Voltage])

Before this PR, inactive DM names were declared (DM objects were created) to the DMs but could not be talked to as the vector of voltages sent to the DMs was only using the other DM voltages

With this PR, the inactive DM names are still declared but during EFC / PW they are not sent command (command always zero). This is a more consistent testbed model in both cases (with 1 or 2 DMs).

If you really want a one DM testbed, you can still remove the other one from initialization