kopia lustrzana https://github.com/Hamlib/Hamlib
Implement Rot.set_parm()
rodzic
bb79bbc278
commit
cfca827f5e
|
@ -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()
|
||||
|
|
|
@ -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)
|
||||
|
|
Ładowanie…
Reference in New Issue