Commit Graph

30 Commits

Author SHA1 Message Date
Klaus Basan
c604ced11c [AFV] Ref T730, improved "locking"
* use more fine granular locks
* do NOT lock signals (when emit is used)
2019-10-11 19:00:43 +01:00
Roland Rossgotterer
d3a1eb1d60 [AFV] First version of threaded CAfvClient 2019-10-11 19:00:38 +01:00
Klaus Basan
6e9fa0b2ad Ref T730, style 2019-10-11 19:00:33 +01:00
Roland Rossgotterer
a2e3700739 Replace QAudioDeviceInfo with CAudioDeviceInfo where possible
QAudioDeviceInfo is a low level technical class, which shouldn't be used in higher level code. Remove it from all APIs
where possible and just create it in order to interface with QAudio
2019-10-11 19:00:31 +01:00
Roland Rossgotterer
8d84dcbe08 [AFV] Make sure all QObjects below AfvClient have a parent 2019-10-11 19:00:30 +01:00
Roland Rossgotterer
fbb126370c [AFV] Use distance ratio 1.0 in loopback mode
Distance ratio 1.0 means same position as sending position, decreasing 
ratio means increasing distance.
2019-10-11 19:00:29 +01:00
Roland Rossgotterer
1f2d4a10b1 [AFV] Add HF simulation 2019-10-11 19:00:27 +01:00
Klaus Basan
91b65fa2b6 Ref T730, AFV client fixes
* correct quint32 for frequency
* make sure frequencies are not updated twice, only update position
* re-init transceivers if stopped and started again
2019-10-11 19:00:23 +01:00
Klaus Basan
cf6434f49b Ref T730, fixed using wrong member "m_outputVolume", added new member "m_outputVolumeDb" 2019-10-11 19:00:23 +01:00
Klaus Basan
bde7baf84d Ref T730, style 2019-10-11 19:00:21 +01:00
Klaus Basan
cd58108bfe [AFV] Ref T730, reload settings after starting audio so they are applied 2019-10-11 19:00:06 +01:00
Roland Rossgotterer
c2bc06da13 [AFV] Fixed int buffer overflow for Hz 2019-10-11 19:00:05 +01:00
Klaus Basan
088ef74392 Ref T730, swift style functions in AFC client
* COM unit related functions
* signal to indicate changed COM values
2019-10-11 19:00:04 +01:00
Klaus Basan
7c89234f8c Ref T730, callsign set used for received callsigns 2019-10-11 19:00:02 +01:00
Klaus Basan
661a6576c5 Ref T730, AFV client
* restart function
* bogus mute function (needs implementation)
* float -> double
* log categories
* settings
2019-10-11 19:00:01 +01:00
Klaus Basan
6b19ed665e Ref T730, added settings in AFV client 2019-10-11 18:59:56 +01:00
Klaus Basan
e21fdeb039 Ref T730, pass PTT key events to client
* currently passing from context to client, so context and client know the state
* PTT enum in own file so it can be reused
2019-10-11 18:59:55 +01:00
Klaus Basan
992d624c18 Ref T731, moved AFV station model and client to BlackCore::Afv
* the QML map can also be used in dialog
* ATC station list also can be used in BlackCore
2019-10-11 18:59:53 +01:00
Klaus Basan
66b02e61c5 Ref T730, directly use context from sApp
* using sApp->getIContextOwnAircraft()
* no need to pass context, avoid issues when shutting down
* minor style changes
2019-10-11 18:59:53 +01:00
Klaus Basan
99edc9cb13 Ref T730, code style, adding namespaces 2019-10-11 18:59:45 +01:00
Roland Rossgotterer
1deaf1ca8b Add volume sliders to AFV sample UI 2019-10-11 18:59:12 +01:00
Roland Rossgotterer
8d1eea25b1 Implement VolumeSampleProvider to gain in and output
fixup! Implement VolumeSampleProvider to gain in and output
2019-10-11 18:59:12 +01:00
Roland Rossgotterer
8b1fb1baca [AFV] Add method to read all aliased HF stations
ref T729
2019-10-11 18:59:11 +01:00
Roland Rossgotterer
44146353a6 Fix ApiServerConnection::postNoResponse 2019-10-11 18:59:08 +01:00
Roland Rossgotterer
acb5b11966 Finish demo UI and connect it to AFVClient
this includes:
- enable/disable check boxes, 
- ptt button
- loopback check box
- map zoom buttons
- showing the received callsign
- VHF effects checkbox
ref T731
2019-10-11 18:59:08 +01:00
Roland Rossgotterer
852247e893 Fix namespace 2019-10-11 18:59:08 +01:00
Roland Rossgotterer
7ac962ed77 Add methods to read received callsigns from AFV
ref T729
2019-10-11 18:59:07 +01:00
Klaus Basan
a37c9a8772 Ref T730, style 2019-10-11 18:59:05 +01:00
Klaus Basan
384aa3ce19 Ref T730, namespace for BlackCore::Afv
* added namespace
* removed some *.pri files and added files to blackcore.pro
* added copyright etc.
2019-10-11 18:59:02 +01:00
Roland Rossgotterer
b5a2f2ad13 AFV initial commit 2019-10-11 18:58:47 +01:00