更新 'src/Network/fgcom.cxx'
This commit is contained in:
@@ -639,13 +639,14 @@ void FGCom::valueChanged(SGPropertyNode *prop)
|
|||||||
if (prop == _ptt_node && _enabled) {
|
if (prop == _ptt_node && _enabled) {
|
||||||
if (_ptt_node->getIntValue()) {
|
if (_ptt_node->getIntValue()) {
|
||||||
// ensure that we are on the right channel by calling setupCommFrequency
|
// ensure that we are on the right channel by calling setupCommFrequency
|
||||||
|
fgSetString("/sim/screen/red","PTT按下,请讲...");
|
||||||
|
|
||||||
setupCommFrequency();
|
setupCommFrequency();
|
||||||
iaxc_output_level_set(0.0);
|
iaxc_output_level_set(0.0);
|
||||||
iaxc_input_level_set(_micLevel_node->getFloatValue()); //0.0 = min , 1.0 = max
|
iaxc_input_level_set(_micLevel_node->getFloatValue()); //0.0 = min , 1.0 = max
|
||||||
_mpTransmitFrequencyNode->setValue(_currentCallFrequency * 1000000);
|
_mpTransmitFrequencyNode->setValue(_currentCallFrequency * 1000000);
|
||||||
_mpTransmitPowerNode->setValue(1.0);
|
_mpTransmitPowerNode->setValue(1.0);
|
||||||
|
|
||||||
fgSetString("/sim/screen/white","PTT按下,请讲...");
|
|
||||||
|
|
||||||
|
|
||||||
SGPath soundpath( globals->get_fg_root() );
|
SGPath soundpath( globals->get_fg_root() );
|
||||||
|
|||||||
Reference in New Issue
Block a user