Commit Graph

162 Commits

Author SHA1 Message Date
Mat Sutcliffe
670b1a1986 Fix cppcheck and compiler warnings 2020-06-29 18:34:16 +01:00
Klaus Basan
6fc3d55d9a Fixed mute handling and audio LED
* AFV client has own "changedMute" signal
* unmute if started/stopped AFC client
* in statusbar also check audio start/stop to refresh LEDs
* see https://discordapp.com/channels/539048679160676382/539486309882789888/713491666971000872
2020-06-12 18:42:57 +01:00
Klaus Basan
a1f8525fcb [AFV] Make sure the failures go to the log.
see https://discordapp.com/channels/539048679160676382/539846348275449887/707618814237343764
2020-06-12 18:42:56 +01:00
Klaus Basan
1e633a5704 [AFV] Use heartbeat to re-connect to AFV
* some utility functions
* reset values after disconnect
2020-06-12 18:42:54 +01:00
Klaus Basan
bba07ef4c4 [AFV] Signal/handling for authentication failures
* authentication issues in AFV were silently handled
* and there was no re-try, which could mean an initial glitch COULD cause AFV not working properly
* NOW handling in AFV client and context
* also reset connection data so for a new session no old authentication token or check time is used
* check for "invalid" QDateTime(s)
2020-06-12 18:42:54 +01:00
Klaus Basan
9e6716e515 [AFV] Allow to log. input receiver 2020-06-12 18:42:54 +01:00
Klaus Basan
f2e0e7b22e [AFV] Renamed to "setGainRatio" as the value does not represent a volume, but a multiplier 2020-06-12 18:42:53 +01:00
Klaus Basan
8848faadfa [AFV] Disabled the device output functions (not used)
Remark: might be used in AFV client, hence kept
2020-06-12 18:42:53 +01:00
Klaus Basan
7d51bedc3e [AFV] misc style issues:
* object name
* simple style fixes
* some renamings
* comments
2020-06-12 18:42:53 +01:00
Klaus Basan
828b57f5a2 [AFV] Log. messages 2020-06-12 18:42:48 +01:00
Klaus Basan
ea8198d26e [AFV] Allow to set the tx/rx values for the AFV client
Simplified function
2020-06-12 18:42:46 +01:00
Klaus Basan
b63e127b13 [AFV] Verbose logging only for dev.builds 2020-06-12 18:42:44 +01:00
Klaus Basan
7d4e897b88 [AFV] Displayed sync. (integrated with COM unit) flag in cockpit 2020-06-12 18:42:40 +01:00
Klaus Basan
271c6c4825 [AFV] Map reader, break while loop if application shuts down 2020-06-12 18:42:34 +01:00
Klaus Basan
8e89488bae Guard 2020-06-12 18:42:34 +01:00
Klaus Basan
14ab60cb73 Guarding by "hasWebDataServices" 2020-06-12 18:42:33 +01:00
Klaus Basan
7dcfed613f [AFV] style: use "m_" prefix as it makes the functions easier to read 2020-06-12 18:42:25 +01:00
Klaus Basan
34817a83d5 [AFV] Guard against "missing" crypto channel (=> ASSERT) 2020-06-12 18:42:24 +01:00
Klaus Basan
c46ca3c616 [AFV] restart function 2020-01-22 20:02:01 +01:00
Klaus Basan
5f6912e814 [AFV] deadlock prevention in AFV client,
follow up of fixing the loading of audio settings

* use "m_mutexSampleProviders" for finer granularity
* call output/input volume in AFV client thread (avoid potential deadlocks)
* tryLock for a critical part which has caused deadlocks in the past (just precautionary)

remarks:
* mixing QTimer::singleShot and QMutex is mixing two concepts (not good)
* this is just a pragmatic apporach at this time to avoid some noticed issues as the AFVClient was 1st running in the main thread, then was moved into background (improved performance)
2020-01-22 19:47:25 +01:00
Klaus Basan
f9bc5ceec4 Trivial 2020-01-22 19:46:14 +01:00
Mat Sutcliffe
4a0d8e9864 Fixed most Qt 5.14 deprecation warnings 2020-01-07 19:57:25 +00:00
Klaus Basan
091fa5f338 [Audio] Get/set audio device volume (this is the device's value, NOT the logical AFV value) 2020-01-07 19:57:23 +00:00
Klaus Basan
172fa1ddc8 Fix linker error with newer gcc versions 2020-01-07 19:57:21 +00:00
Klaus Basan
efee7968dc [AFV] Using the aliased frequencies can be enabled/disabled
* flag
* "dot command"
* register audio "dot commands" for audio
2020-01-07 19:57:20 +00:00
Klaus Basan
702ca31b38 [FSD] Smaller fixes, style 2020-01-07 19:57:17 +00:00
Klaus Basan
11187870de Fixed missing compare index, message placeholder, and minor style fixes 2020-01-07 19:57:17 +00:00
Klaus Basan
881ec39043 [AFV] Fix aliased frequency handling
* ONLY use HF frequency if stations match and is closest station
* better log messages
2020-01-07 19:46:19 +00:00
Klaus Basan
53de0d56b9 Style 2020-01-07 19:46:17 +00:00
Klaus Basan
134c805990 [AFV] Ref T739, device info improvements
* registration
* use identifier in device info list
* propertyByIndex/compareByIndex
* unRegisterDevices
2020-01-07 19:46:15 +00:00
Roland Rossgotterer
a32e38b6a8 Change CAfvMapReader url to public AFV API
The previous one was a private API and got removed.
2020-01-07 19:46:14 +00:00
Klaus Basan
0fa9bcb520 Doxygen, style 2020-01-07 19:05:42 +00:00
Klaus Basan
52ce9f9205 [AFV] return aliased stations and use correct frequency 2020-01-07 19:05:42 +00:00
Klaus Basan
9447db00bc [AFV] Ref T739, audio can now be disabled from UI 2020-01-07 19:05:41 +00:00
Klaus Basan
767b999330 [AFV] Ref T739, start/stop audio improvements
* signals
* "restart" without devices
2020-01-07 19:05:40 +00:00
Klaus Basan
a63fe0dc21 [AFV] Ref T739, unified callsign functions in CAfvClient
* improved CallsignSet from QStringList
* renamed the functions which just return a string
* added functions for CCallsignSet
2019-10-23 00:38:26 +02:00
Klaus Basan
be99911372 Style, minor adjustments 2019-10-23 00:38:26 +02:00
Klaus Basan
97eb8880a8 Doxygen, style 2019-10-23 00:38:26 +02:00
Klaus Basan
49272d3b1c [AFV] Ref T739, use QMutex::Recursive to avoid deadlock in same thread 2019-10-23 00:38:25 +02:00
Klaus Basan
afe72b029f Doxygen/style 2019-10-23 00:38:24 +02:00
Klaus Basan
607256d4b8 [AFV] Ref T730, changed qDebug to CLogMessage 2019-10-18 22:41:38 +02:00
Klaus Basan
aaa5fc259a Doxygen 2019-10-18 12:10:55 +02:00
Klaus Basan
b88bdee405 [AFV] Ref T739, verify devices 2019-10-18 10:36:34 +02:00
Klaus Basan
a8c7575d9d Style 2019-10-18 10:36:25 +02:00
Klaus Basan
f81fc31da6 [AFV] Ref T730, fetch settings in correct thread (i.e. context thread) 2019-10-18 10:36:25 +02:00
Klaus Basan
7fdc2c3db3 [AFV] Ref T730, changed/added settings for AFV and allow still to use old swift notifications 2019-10-18 10:36:25 +02:00
Klaus Basan
439f76c9bb [AFV] Ref T730, extra lock for volume (less blocking) 2019-10-18 10:36:25 +02:00
Klaus Basan
1e7bc8a80f [AFV] Ref T739, reduce verbose log message 2019-10-18 10:36:24 +02:00
Klaus Basan
f236b54084 Style 2019-10-18 10:36:24 +02:00
Roland Rossgotterer
1051cc5751 [AFV] Add fuzzy callsign matching before aliasing a HF station
# Conflicts:
#	src/blackcore/afv/clients/afvclient.h
2019-10-18 10:36:24 +02:00