Implement Rot.set_parm()

pull/1726/head
Daniele Forsi IU5HKX 2025-06-02 17:56:13 +02:00
rodzic bb79bbc278
commit cfca827f5e
2 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -70,6 +70,9 @@ class TestClass:
assert rot.set_func(1, status) is None
assert rot.get_func(1) == 0 # FIXME should read status
value.i = 5
assert rot.set_parm(Hamlib.ROT_PARM_NONE, value) is None
assert rot.close() is None
assert rot.state.comm_state == 0
info = rot.get_info()

Wyświetl plik

@ -91,6 +91,9 @@ typedef struct Rot {
ROTMETHOD2(set_func, setting_t, int)
extern void get_func(setting_t func, int *OUTPUT);
ROTMETHOD2(set_parm, setting_t, value_t)
ROTMETHOD2(set_position, azimuth_t, elevation_t)
extern void get_position(azimuth_t *OUTPUT, elevation_t *OUTPUT);
ROTMETHOD0(stop)