kopia lustrzana https://github.com/Hamlib/Hamlib
Implement Rot.set_func()
rodzic
5a5279492e
commit
cc0dbc9efd
|
@ -62,6 +62,12 @@ class TestClass:
|
||||||
assert rot.stop() is None
|
assert rot.stop() is None
|
||||||
assert rot.park() is None
|
assert rot.park() is None
|
||||||
assert rot.reset(Hamlib.ROT_RESET_ALL) 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.close() is None
|
||||||
assert rot.state.comm_state == 0
|
assert rot.state.comm_state == 0
|
||||||
info = rot.get_info()
|
info = rot.get_info()
|
||||||
|
|
|
@ -89,6 +89,7 @@ typedef struct Rot {
|
||||||
ROTMETHOD0(open)
|
ROTMETHOD0(open)
|
||||||
ROTMETHOD0(close)
|
ROTMETHOD0(close)
|
||||||
|
|
||||||
|
ROTMETHOD2(set_func, setting_t, int)
|
||||||
ROTMETHOD2(set_position, azimuth_t, elevation_t)
|
ROTMETHOD2(set_position, azimuth_t, elevation_t)
|
||||||
extern void get_position(azimuth_t *OUTPUT, elevation_t *OUTPUT);
|
extern void get_position(azimuth_t *OUTPUT, elevation_t *OUTPUT);
|
||||||
ROTMETHOD0(stop)
|
ROTMETHOD0(stop)
|
||||||
|
|
Ładowanie…
Reference in New Issue