Mike Black W9MDB
3bf26fa65d
Change sprintf to snprint in sartek.c
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-09 10:16:24 -06:00
Mike Black W9MDB
405040b375
Change sprintf to snprint in ether6.c
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-09 09:35:35 -06:00
Mike Black W9MDB
20dd20032d
Change sprintf to snprint in easycomm.c
...
https://github.com/Hamlib/Hamlib/issues/857
2022-01-09 09:33:15 -06:00
Andrew Rodland
f5a83df14c
Update RT-21 version
2022-01-04 17:47:48 -05:00
Andrew Rodland
be53d99d9f
Enable "stop" command for RT-21 rotator.
2022-01-02 01:33:21 -05:00
Andrew Rodland
8bf26f1fa0
Fix spurious writes when no RT-21 second port
...
The if condition for whether there actually is a second port is only
covering the sprintf for the elevation command, and not the write
attempt. So we call rotorez_send_priv_cmd2 whether rotport2 is valid or
not. When it's not, we try to write the command to fd 0 (stdin). When
running on the console, this results in trash on the console. When
runnning under something else (e.g. systemd) this results in errors or
other wierd behavior (e.g. EBADF because stdin isn't connected, causing
the command to fail with RIG_EIO).
2021-12-29 13:54:20 -05:00
Mikael Nousiainen
c764336e73
Fix build warnings caused by changes to I/O function signatures
2021-12-18 23:49:45 +02:00
Mike Black W9MDB
d820ee9dbf
Add expected_len to read_string function for potential serial I/O speedup
...
https://github.com/Hamlib/Hamlib/issues/850
2021-11-24 13:02:39 -06:00
Mike Black W9MDB
8fe190d622
Reduce error messages about RIG_VFO_OTHER which only applies to some rigs like Icom rigs with the 0x25 command
...
Add a flush_flag to read_string so that the new serial_flush will not produce a timeout value when flushing
https://github.com/Hamlib/Hamlib/issues/835
2021-11-01 23:43:45 -05:00
Mike Black W9MDB
468c5d2c03
Add 300ms delay to SPID rotators
...
https://github.com/Hamlib/Hamlib/issues/834
2021-10-23 13:27:01 -05:00
AuroraRAS
7f27917dbc
AndroidSensor codes improvement
...
append rotctl CLI tool to android.mk file
save target az/el to priv pointor, make them accessible more.
remove some c++ warnings.
bug fixes.
codes optimization.
Signed-off-by: AuroraRAS <chplee@gmail.com>
2021-10-06 13:51:19 +08:00
AuroraRAS
1c3250f6f4
add androidsensor rotator
...
The androidsensor rotator is not a real rotator, it uses the accelerometer sensor and magnetic field sensor of the cell phone or tablet to perform attitude determination for your antenna and the phone tied to it.
Now you can wave your antenna to find radio signals.
Signed-off-by: AuroraRAS <chplee@gmail.com>
2021-09-25 09:51:11 +08:00
AuroraRAS
782ad2a034
make the Android.mk files adapt to multi arch
2021-09-25 07:03:23 +08:00
Mike Black W9MDB
388294c3d6
Fix RIG_STATUS_STABLE misspelling
2021-09-15 13:50:31 -05:00
Mike Black W9MDB
8cc59cca3b
Rigs have been at BETA status forever so promoting all to STABLE
2021-09-15 13:44:42 -05:00
AuroraRAS
b5bd1f4036
Append the missing information to build hamlib v4.3 for Android NDK
...
The following errors were fixed in this commit:
error: undefined symbol: rig_sprintf_vfo
error: undefined symbol: initrots2_radant
error: undefined symbol: ts890s_caps
2021-09-07 21:30:09 +08:00
Mike Black W9MDB
283281c4cb
astyle all files preparing for 4.3 release
2021-08-26 06:49:24 -05:00
Mike Black W9MDB
0a0873252e
Fix CodeQL warnings
2021-08-13 12:28:58 -05:00
Mike Black W9MDB
046f3c448d
Allow 2nd rotator port for RT-21 Az/El model
...
https://github.com/Hamlib/Hamlib/issues/747
2021-08-01 12:14:17 -05:00
Mike Black W9MDB
eab000306c
Add max elevation 90 to RT21 rotor in preparation for adding elevation control on 2nd controller
...
https://github.com/Hamlib/Hamlib/issues/747
2021-07-23 22:48:52 -05:00
Mike Black W9MDB
27eb0087cb
Fix buffer overflow in radant.c
...
0165d81e47 (commitcomment-50545346)
2021-05-08 07:49:01 -05:00
Mike Black W9MDB
4501c1c97b
Remove generated files
2021-04-14 15:41:01 -05:00
Mike Black W9MDB
9d310062eb
More files for git clone configure to work
2021-04-14 09:19:27 -05:00
Mike Black W9MDB
2f2322068e
Update Radant rotator
...
https://github.com/Hamlib/Hamlib/pull/658
2021-04-12 09:31:53 -05:00
Evgeniy Titorenko
0165d81e47
Add Radant AZV-1 Rotator controller protocol.
2021-04-09 19:19:08 +03:00
Nonoo
a4d14e6f92
Fix warning caused by commit ac1cb518b0
2021-03-15 16:21:10 +01:00
Michael Black W9MDB
9fa3f59684
Fix cppcheck warning in rc2800.c
2021-02-28 12:33:07 -06:00
Michael Black W9MDB
ee60a68bec
astyle files
2021-02-28 09:46:01 -06:00
Michael Black W9MDB
83c47fad42
Android NDK now builds -- check README.android for info on libusb
...
https://github.com/Hamlib/Hamlib/issues/546
2021-02-28 15:50:36 +01:00
Michael Black W9MDB
ce8e539d86
Fix compilation warnings in prosistel.c
2021-02-26 11:16:49 -06:00
Michael Black W9MDB
acbe8da8a1
astyle rc2800.c
...
https://github.com/Hamlib/Hamlib/issues/451
2021-01-29 08:23:19 -06:00
Michael Black W9MDB
883574049b
Fix compile error on rc2800
...
https://github.com/Hamlib/Hamlib/issues/451
2021-01-29 08:22:56 -06:00
Michael Black W9MDB
f228bda1a2
Add detection of echo for rc2800 -- seems some versions do echo
...
https://github.com/Hamlib/Hamlib/issues/451
2021-01-29 08:20:56 -06:00
Joshua Lynch
b5a18c1732
merged upstream/master into master
2021-01-27 12:44:07 -06:00
Joshua Lynch
887b289920
fixed state bug. reconnecting would disable motion every other connect.
2021-01-27 12:40:18 -06:00
Nate Bargmann
610cd26085
Supply missing rotators/satel/Android.mk
...
The use of 'make discheck' will detect such missing files before pushing
out changes.
2021-01-26 07:12:26 -06:00
Joshua Lynch
ed5728c321
factored io functions out.
...
improve reliability...i hope.
2021-01-24 23:54:07 -06:00
Joshua Lynch
e6fa200152
initial SatEL rotator support
2021-01-23 23:26:01 -06:00
Michael Black W9MDB
c2feb98693
Fix uninitialized value in prosistel.c
2020-12-27 17:15:57 -06:00
Michael Black W9MDB
5f73977ec0
fix cygwin compile warning on rotorex.c
2020-12-27 12:44:14 -06:00
Michael Black W9MDB
263f1cde72
astyle files
2020-12-17 15:07:04 -06:00
Mikael Nousiainen
429fd1ab89
Set az/el return values to zero when not supported
2020-12-15 22:18:08 +02:00
Mikael Nousiainen
0b52d2a6c3
Update Prosistel backend model variable names
2020-12-15 21:46:02 +02:00
Mikael Nousiainen
219b1635a1
Make Prosistel model names shorter
2020-12-15 21:42:29 +02:00
Mikael Nousiainen
9e604437b1
Fix Prosistel rotator backend: the 'D' model and Combi-Track for az+el have slightly different protocols. Add stop command.
2020-12-15 21:40:35 +02:00
Michael Black W9MDB
20764a5483
If error return on prosistel elevation just return RIG_OK
...
Assuming no elevation available in this case
https://github.com/Hamlib/Hamlib/issues/466
2020-12-14 16:49:58 -06:00
Michael Black W9MDB
ac1cb518b0
Fix a few cppcheck warnings
2020-12-09 16:12:31 -06:00
Mikael Nousiainen
b062ddce22
Do not expect a reply from GS-232B stop command. Fix GS-232B retry error code.
2020-12-06 14:21:39 +02:00
Mikael Nousiainen
81a0c521e7
Add support for ROT_LEVEL_SPEED level in rotator backends that support setting the rotator speed via the move command. Add azimuth-only and elevation-only versions of generic GS-232A and GS-232B backends.
2020-12-03 23:07:08 +02:00
Mikael Nousiainen
bb315270bf
Merge branch 'master' into rotator-speed-control-and-status
2020-12-02 21:46:23 +02:00
Michael Black W9MDB
e49dc2e1f5
astyle gs232a/gs232b
2020-12-02 07:50:11 -06:00
Michael Black W9MDB
4f8de24873
Change gs232a/b post_write_delay to 50ms
...
Add retry when > char is seen indicating ?> error response
https://github.com/Hamlib/Hamlib/issues/371
2020-12-02 07:48:21 -06:00
Michael Black W9MDB
1beecdd685
Add 25ms post_write_delay for gs232a/b and a retry when \r\n is received
...
https://github.com/Hamlib/Hamlib/issues/371
2020-12-01 16:57:10 -06:00
Michael Black W9MDB
f8790337d3
Hopefully this works for all gs232a/gs232b rotors and emulators
...
We only look now for 0x0a on commands that expect a return
If there is a rig/emulator that does not give 0x0a on expected returns then we will have a problem. gs232a/gs232b doc says 0x0a is expected on
cmds that return info and 0x0d on command with no return.
https://github.com/Hamlib/Hamlib/issues/371
2020-12-01 15:18:08 -06:00
Michael Black W9MDB
5fc36df249
astyle files
2020-11-30 14:53:55 -06:00
Michael Black W9MDB
dd3ed134dd
Turns out M2 has two different protcols
...
So we now have RC2800, RC2800_EARLY_AZ, and RC2800_EARLY_AZEL
RC2800_EARLY_AZ is azimuth only
Update rotctl man page for move keywords
https://github.com/Hamlib/Hamlib/issues/451
2020-11-30 09:22:33 -08:00
Michael Black W9MDB
3490fed03c
One more attempt to get rc2800 cooperating LFCR needed?
...
https://github.com/Hamlib/Hamlib/issues/451
2020-11-29 22:46:04 -06:00
Michael Black W9MDB
511435c73e
Force rc2800 az/el to no decimal point value
...
https://github.com/Hamlib/Hamlib/issues/451
2020-11-29 12:54:12 -06:00
Michael Black W9MDB
b5f7c5884b
Remove decimal point from A and E command for rc2800
...
https://github.com/Hamlib/Hamlib/issues/451
2020-11-28 22:25:55 -06:00
Michael Black W9MDB
c3c1aa9998
Register rc2800 rotator
...
https://github.com/Hamlib/Hamlib/issues/451
2020-11-28 17:03:28 -06:00
Michael Black W9MDB
c16be1c264
Add M2 RC2800 Az-only model
...
Promote RC2800 to stable
https://github.com/Hamlib/Hamlib/issues/451
2020-11-28 16:59:55 -06:00
Michael Black W9MDB
d1f857c131
Remove echo expectation from rc2800 rotor
...
https://github.com/Hamlib/Hamlib/issues/451
2020-11-27 14:35:15 -06:00
Michael Black W9MDB
4c87229e65
Change rc2800 rotator to use CR instead of LF for terminating char
...
https://github.com/Hamlib/Hamlib/issues/451
2020-11-27 13:21:46 -06:00
Mikael Nousiainen
a48f149955
Implement funcs, levels and parms + the ext variants for rotators. Add option to not change rotator speed when using the move command. Add rotator status flags. Work in progress.
2020-11-24 21:51:10 +02:00
Nonoo
8ba011eaf7
Add INDI rotator backend
...
This backend lets Hamlib control an astronomical (telescope) rotator through an
INDI (https://indilib.org/ ) server.
2020-11-15 12:46:35 +01:00
Daniele Forsi IU5HKX
8c8eeaf795
Fix a [missingInclude] "information" when running cppcheck --check-config
...
This is for consistency with other source fils, but gcc finds the include
file anyway (see https://gcc.gnu.org/onlinedocs/cpp/Search-Path.html )
Fixes:
rotators/amsat/if100.c:38:0: information: Include file: "math.h" not found. [missingInclude]
2020-10-12 23:30:11 +02:00
Daniele Forsi
238d90ab06
Fix more spelling errors
...
Fixed by hand.
2020-07-24 09:07:09 +02:00
Daniele Forsi
a507bfec80
Fix more spelling errors
...
As the previous commit, but adding --interactive=2 and ba
codespell --write-changes --interactive=2 --summary --skip=*.m4 --ignore-words-list="ba,develope,get's,quitt,setts,som,ue,vektor"
2020-07-24 09:06:37 +02:00
Daniele Forsi
d7b332c3f7
Fix spelling errors
...
Fixed using the following command:
codespell --write-changes --summary --skip=*.m4 --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor"
codespell --write-changes --summary --skip=aclocal.m4,lib --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor"
Codespell home page: https://github.com/codespell-project/codespell
2020-07-24 09:02:48 +02:00
Michael Black W9MDB
5e801fd2b5
astyle files
2020-07-07 11:39:26 -05:00
Michael Black W9MDB
57c76ed3c4
Fix cppcheck warnings
2020-07-03 17:10:25 -05:00
Michael Black W9MDB
b50975729c
Rotators and amplifiers converted to rig_flush
...
https://github.com/Hamlib/Hamlib/issues/307
2020-06-23 08:44:27 -05:00
Michael Black W9MDB
786c1ae925
Change gs232b parsing to mandate at least AZ= and make EL= optional
...
This covers the 12PR1A rotor which claims gs232b compatibility
The 12PR1A also claims gs232a compability which is wrong as the AZ= EL= format is gs232b
https://github.com/Hamlib/Hamlib/issues/309
Simplify gs232a parsing but mandate both arguments in +0xxx+0xxx format
2020-06-17 07:22:11 -05:00
Michael Black W9MDB
281dba1b8a
Remove unneeded code in gs232b.c that was causing errors on Yaesu G1000
...
https://github.com/Hamlib/Hamlib/issues/272
2020-06-15 22:57:22 -05:00
Michael Black W9MDB
7bed7423f5
Fix cppcheck warning in gs232b.c
2020-06-11 22:30:11 -05:00
Michael Black W9MDB
fa59d97990
Update meade version
2020-06-10 08:20:28 -05:00
Michael Black W9MDB
8e7586b3b2
Fix meade Autostart clause
2020-06-10 08:16:02 -05:00
Michael Black W9MDB
f71c12da94
astyle files
2020-06-09 22:37:03 -05:00
Michael Black W9MDB
b239e227bd
Change rotators to standard version format and promote a few to stable
2020-06-08 16:13:08 -05:00
Nate Bargmann
974f069623
Correct missed spelling error
2020-06-04 07:03:40 -05:00
Nate Bargmann
d35637d523
Merge branch 'master' of github.com:Hamlib/Hamlib
2020-06-04 06:50:40 -05:00
Nate Bargmann
faf0410595
Reference rotctl instead of rigctl
...
Apply trivial formatting changes.
2020-06-04 06:34:25 -05:00
Michael Black W9MDB
17b404a6c7
Add seconds to dmmm2dec
...
Change meade.c to support dmmm2dec seconds
https://github.com/Hamlib/Hamlib/issues/268
2020-06-03 22:33:56 -05:00
Michael Black W9MDB
783df7b579
Remove unused var from gs232b.c
2020-06-01 23:00:37 -05:00
Michael Black W9MDB
8c27ef12a0
Remove expected response for gs232b W command
...
https://github.com/Hamlib/Hamlib/issues/272
2020-05-31 23:21:51 -05:00
Nate Bargmann
7a549f5680
Merge branch 'remove_backticks'
2020-05-31 12:39:04 -05:00
Michael Black W9MDB
e36910e384
Fix Autostar spelling...duh...
2020-05-31 11:49:04 -05:00
Michael Black W9MDB
785dd267d5
Update version for meade.c
2020-05-31 07:07:44 -05:00
Michael Black W9MDB
98896df163
Add check for Audiostar in meade.c to provide arcminutes on elevation limit
...
https://github.com/Hamlib/Hamlib/issues/266
2020-05-31 06:59:13 -05:00
Nate Bargmann
7200898e77
Remove unneded backticks in rotators/
2020-05-30 21:15:33 -05:00
Michael Black W9MDB
67db7b58b8
Undo last meade.c commit
2020-05-29 07:23:18 -05:00
Michael Black W9MDB
813d99cf8b
Fix elevation command for meade.c
...
https://github.com/Hamlib/Hamlib/issues/267
2020-05-28 23:53:25 -05:00
Michael Black W9MDB
71bd84d5e5
Fix gs232b get_pos error along with all other no_reply commands
...
https://github.com/Hamlib/Hamlib/issues/251
2020-05-17 14:11:29 -05:00
mdblack98
e73bd5bdef
Remove replybuf from gs232a.c as it was not used
2020-05-05 22:16:53 -05:00
mdblack98
2ae7c7fd76
Remove replybuf from gs232b.c as it was not used
2020-05-05 22:15:05 -05:00
mdblack98
a3b1b055b3
Fix cppcheck warnings
2020-05-05 11:32:09 -05:00
mdblack98
f5c09a7907
Remove unused in gs232.c
2020-04-24 15:45:40 -05:00
mdblack98
a2465033de
https://github.com/Hamlib/Hamlib/issues/223
...
Do the same fix for gs232 to honor null data returns
2020-04-24 14:18:09 -05:00
mdblack98
fc3c2d5c2a
https://github.com/Hamlib/Hamlib/issues/223
...
Fix gs232a/b null data requests now do not expect a reply
2020-04-24 14:16:33 -05:00
Michael Black
67d09427d3
Add experimental network serial mode for network-based serial interfaces
2020-04-03 08:02:31 -05:00