I am using Olympe with a simulated Anafi AI in Sphinx. I am wondering how I can better understand when an expectation I send to the drone is failing.
I know that I can use expectation.explain() to get a string that is colored in red where the failing occured. But for example, when I try to change camera2 configuration, my expectation fails if I try to set the photo_mode to enums.camera2.PhotMode.time_lapse. It works when I set it to single though. I don’t understand why the TIME_LAPSE setting is not accepted.
More generally, is there a way to get detailed explanation of why an expectation did fail ?
Sorry for the delay. It’s not easy to change the configuration of camera2. The olympe example photo2 is a good start if you want to change the configuration. For example, this config works:
Note that setting the photo resolution at runtime will only work with a real drone. With sphinx, it will have no effect (see Shortcomings and limitations - 2.15.1).