commands must be specified explicitely

no more automatic definition by just declaring do_<command>

Change-Id: Ided91b5ae6fe657a6134f1cc14cc6484570a3646
Reviewed-on: https://forge.frm2.tum.de/review/18206
Tested-by: JenkinsCodeReview <bjoern_pedersen@frm2.tum.de>
Reviewed-by: Markus Zolliker <markus.zolliker@psi.ch>
This commit is contained in:
2018-06-19 11:16:14 +02:00
parent fc948972cc
commit 5ffe953c5c
2 changed files with 20 additions and 12 deletions

View File

@ -173,6 +173,10 @@ class PyTangoDevice(Module):
),
}
commands = {
'reset': Command('Tango reset command', arguments=[], result=None),
}
tango_status_mapping = {
PyTango.DevState.ON: Drivable.Status.IDLE,
PyTango.DevState.ALARM: Drivable.Status.WARN,
@ -646,6 +650,10 @@ class Motor(Actuator):
),
}
commands = {
'reference': Command('Do a reference run', arguments=[], result=None),
}
def read_refpos(self, maxage=0):
return float(self._getProperty('refpos'))