Implement Rot.set_func()

pull/1726/head
Daniele Forsi IU5HKX 2025-06-02 17:47:23 +02:00
rodzic 5a5279492e
commit cc0dbc9efd
2 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -62,6 +62,12 @@ class TestClass:
assert rot.stop() is None
assert rot.park() is None
assert rot.reset(Hamlib.ROT_RESET_ALL) is None
status = 0
assert rot.set_func(1, status) is None
status = 1
assert rot.set_func(1, status) is None
assert rot.close() is None
assert rot.state.comm_state == 0
info = rot.get_info()

Wyświetl plik

@ -89,6 +89,7 @@ typedef struct Rot {
ROTMETHOD0(open)
ROTMETHOD0(close)
ROTMETHOD2(set_func, setting_t, int)
ROTMETHOD2(set_position, azimuth_t, elevation_t)
extern void get_position(azimuth_t *OUTPUT, elevation_t *OUTPUT);
ROTMETHOD0(stop)