Re: [Hamlib-developer] rotctl connected to rotctld , Range problem min max
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Ben Z en de r. <hoo...@gm...> - 2025-03-13 09:29:35
|
I solved this by upgrading hablib to version 4.5.4 on the Satnogs Pi libhamlib, libhamlib-dev and libhamlib0utils, after which also python3-hamlib needed to be updated. Now all works great ! Op do 6 mrt 2025 om 09:27 schreef Ben Z en de rest <hoo...@gm... >: > Hi, > I am updating some Arduino rotor control software with feedback of AZ and > EL values when called (GS232 protocol, sending on C2 command sent by > rotctld Pi to Arduino. > > So far, so good. Running rotctld on the rotor controlling Pi , and > Gpredict on the remote PC it nicely tracks the satellites and shows the > reported values of AZ and EL in the Gpredict window. > > Time to check the same controlling the remote Pi from my Satnogs Pi, which > is going to control the AZ ./ EL motor. > > I run : > rotctl -m 2 -r 192.168.0.186:4533 -vvvvvvvvvv > > > I get in return, as values: > > 0000 5c 64 75 6d 70 5f 73 74 61 74 65 0a \dump_state. > read_string called, rxmax=64 > read_string(): RX 2 characters > 0000 31 0a 1. > read_string called, rxmax=64 > read_string(): RX 4 characters > 0000 36 30 32 0a 602. > read_string called, rxmax=64 > read_string(): RX 19 characters > 0000 6d 69 6e 5f 61 7a 3d 2d 31 38 30 2e 30 30 30 30 > min_az=-180.0000 > 0010 30 30 0a 00. > read_string called, rxmax=64 > read_string(): RX 18 characters > 0000 6d 61 78 5f 61 7a 3d 34 35 30 2e 30 30 30 30 30 > max_az=450.00000 > 0010 30 0a 0. > read_string called, rxmax=64 > read_string(): RX 16 characters > 0000 6d 69 6e 5f 65 6c 3d 30 2e 30 30 30 30 30 30 0a > min_el=0.000000. > read_string called, rxmax=64 > read_string(): RX 18 characters > 0000 6d 61 78 5f 65 6c 3d 31 38 30 2e 30 30 30 30 30 > max_el=180.00000 > 0010 30 0a 0. > Opened rot model 2, 'NET rotctl' > Backend version: 20200528.0, Status: Stable > > > So, at rotator command prompt I enter p (to get position) which results in > > rot_get_position: got az=135.00, el=29.00 > Azimuth: 135.00 > Elevation: 29.00 > > So, now trying to send the AZ EL to 50 50 with P 50 50 which results in > > rotctl_parse: input_line: P 50 50 > rot_set_position called az=50.00 el=50.00 > rot_set_position: south_zero=0 > rot_set_position: range problem az=50.00(min=0.00,max=0.00), > el=50.000000(min=0.00,max=0.000000) > set_pos: error = Invalid parameter > > > So, the first report when starting tells me I can set AZ and EL within > certain ranges, but when setting it says de min and max values are zero ? > > Terminating the rotctl connection on that pi, and sending: > > pi@raspberrypi:~ $ echo "\set_pos 50.0 50.0" | nc -w 1 192.168.0.186 4533 > > starts setting the AZ and EL of the motor to the requested problems. > > What am I possibly overlooking ? > > Thanks, > Ben > > > > > > |