-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hi,
I'm working on my own CoverCalibrator, and so far so good: everything moves, driver seems to works nice in N.I.N.A., etc.
But when I run the Conform Check tool i get this:
Methods
18:15:23.310 OpenCover OK OpenCover was successful. The asynchronous open took 9.5 seconds
18:15:32.913 CloseCover OK CloseCover was successful. The asynchronous close took 9.6 seconds
18:15:37.791 HaltCover OK Cover is no longer moving after issuing the HaltCover command
18:15:37.854 CalibratorOn OK CalibratorOn with brightness -1 threw an InvalidValueException as expected
**18:15:38.044 CalibratorOn ERROR CalibratorOn with brightness 0 was unsuccessful - the returned CoverState was 'Unknown' instead of 'Ready'. The asynchronous operation took 0.1 seconds**
18:15:38.137 CalibratorOn OK CalibratorOn with brightness 63 was successful. The synchronous operation took 0.0 seconds
18:15:38.158 CalibratorOn OK The Brightness property does return the value that was set
18:15:38.249 CalibratorOn OK CalibratorOn with brightness 127 was successful. The synchronous operation took 0.0 seconds
18:15:38.270 CalibratorOn OK The Brightness property does return the value that was set
18:15:38.359 CalibratorOn OK CalibratorOn with brightness 191 was successful. The synchronous operation took 0.0 seconds
18:15:38.380 CalibratorOn OK The Brightness property does return the value that was set
18:15:38.471 CalibratorOn OK CalibratorOn with brightness 255 was successful. The synchronous operation took 0.0 seconds
18:15:38.492 CalibratorOn OK The Brightness property does return the value that was set
18:15:38.541 CalibratorOn OK CalibratorOn with brightness 256 threw an InvalidValueException as expected
18:15:38.630 CalibratorOff OK CalibratorOff was successful. The asynchronous action took 9.6 seconds
18:15:38.651 CalibratorOff OK Brightness is set to zero when the calibrator is turned off
Conformance test complete
The offending line does not make a lot of sense to me:
18:15:38.044 CalibratorOn ERROR CalibratorOn with brightness 0 was unsuccessful - the returned CoverState was 'Unknown' instead of 'Ready'. The asynchronous operation took 0.1 seconds
I can imagine that the cover being closed might be a requisite to switch the calibrator on (with 0 or non 0 values) but, as per the standard, Ready is not in the enum for CoverState value. The Unknown comes from the previous HaltCover check that leaves the cover neither open nor closed.
Am I missing something, or is there a bug here?
Kind regards,
Carlos