Module proxy class holding the default parameter of a C-me.
| 58 | |
| 59 | |
| 60 | class CmeModule(HobbicoModule): |
| 61 | """ Module proxy class holding the default parameter of a C-me. """ |
| 62 | config = Config({ |
| 63 | Option( |
| 64 | 'IP', |
| 65 | "IP address of drone's AP", |
| 66 | True, |
| 67 | ): "192.168.100.1", |
| 68 | Option( |
| 69 | 'FLYCTL_PORT', |
| 70 | "Fly controller port", |
| 71 | True, |
| 72 | ): 4646, |
| 73 | Option( |
| 74 | 'TARGET', |
| 75 | "Target's SSID", |
| 76 | True, |
| 77 | choices=lambda o: [e for e in o.state['TARGETS'].keys() if drone_filter(e, o.module.drone) and \ |
| 78 | e in o.console.root.connected_targets], |
| 79 | ): None, |
| 80 | }) |
| 81 | drone = "Hobbico C-me" |
| 82 | path = "command/hobbico/cme" |
| 83 | |
| 84 | |
| 85 | class CmeUpdateModule(CmeModule): |
nothing calls this directly
no test coverage detected