/QMK-Groundstation/trunk/Forms/dlg_MotorMixer.cpp |
---|
291,7 → 291,7 |
void dlg_MotorMixer::read_Mixer() |
{ |
TX_Data[0] = 0; |
o_Connection->send_Cmd('n', ADDRESS_FC, TX_Data, 1, true); |
o_Connection->send_Cmd('n', ADDRESS_FC, TX_Data, 1, false); |
} |
// Motordaten auslesen |
298,13 → 298,13 |
void dlg_MotorMixer::slot_pb_READ() |
{ |
TX_Data[0] = 0; |
o_Connection->send_Cmd('n', ADDRESS_FC, TX_Data, 1, true); |
o_Connection->send_Cmd('n', ADDRESS_FC, TX_Data, 1, false); |
} |
void dlg_MotorMixer::slot_pb_WRITE() |
{ |
int Length = get_MotorConfig(); |
o_Connection->send_Cmd('m', ADDRESS_FC, TX_Data, Length, true); |
o_Connection->send_Cmd('m', ADDRESS_FC, TX_Data, Length, false); |
} |
void dlg_MotorMixer::slot_pb_LOAD() |
/QMK-Groundstation/trunk/Forms/mktool.cpp |
---|
724,6 → 724,10 |
{ |
if (!f_Map->isVisible()) |
{ |
// delete f_Map; |
// f_Map = new dlg_Map(this); |
// f_Map->create_Map(Settings); |
f_Map->show(); |
} |
} |
1136,7 → 1140,7 |
if ((tab_Main->currentWidget()->objectName() == QString("Tab_2")) && (f_Settings->listWidget->currentRow() == 1)) |
{ |
TX_Data[0] = 0; |
o_Connection->send_Cmd('p', ADDRESS_FC, TX_Data, 0, false); |
o_Connection->send_Cmd('p', ADDRESS_FC, TX_Data, 0, true); |
Ticker->setInterval(500); |
TickerEvent[1] = true; |
1178,7 → 1182,7 |
lb_Status->setText(tr("Lese FlightCtrl-Settings aus.")); |
TX_Data[0] = f_Settings->sb_Set->value(); |
TX_Data[1] = 0; |
o_Connection->send_Cmd('q', ADDRESS_FC, TX_Data, 1, true); |
o_Connection->send_Cmd('q', ADDRESS_FC, TX_Data, 1); |
} |
void MKTool::slot_SetFCSettings() // DONE 0.71g |
1187,7 → 1191,7 |
lb_Status->setText(tr("Schreibe FlightCtrl-Settings.")); |
o_Connection->send_Cmd('s', ADDRESS_FC, TX_Data2, MaxParameter + 2, true); |
o_Connection->send_Cmd('s', ADDRESS_FC, TX_Data2, MaxParameter + 2, false); |
} |
1397,8 → 1401,6 |
case 'N' : |
if (ToolBox::Decode64(RX)) |
{ |
o_Connection->stop_ReSend(); |
if (RX.Decode[0] == VERSION_MIXER) |
{ |
f_MotorMixer->set_MotorConfig(RX); |
1409,8 → 1411,6 |
case 'M' : |
if (ToolBox::Decode64(RX)) |
{ |
o_Connection->stop_ReSend(); |
if (RX.Decode[0] == 1) |
{ |
lb_Status->setText(tr("MotorMixer-Daten in FC geschrieben.")); |
1436,7 → 1436,7 |
case 'Q' : // DONE 0.71g |
if (ToolBox::Decode64(RX)) |
{ |
o_Connection->stop_ReSend(); |
TickerEvent[0] = false; |
if (RX.Decode[1] == VERSION_SETTINGS) |
{ |
1445,6 → 1445,7 |
{ |
FCSettings[a] = RX.Decode[a + 2]; |
} |
//show_ParameterSet(Settings_ID); |
f_Settings->show_FCSettings(Settings_ID, FCSettings); |
f_Settings->pb_Read->setEnabled(true); |
f_Settings->pb_Write->setEnabled(true); |
1461,7 → 1462,7 |
break; |
// Settings geschrieben |
case 'S' : // DONE 0.71g |
o_Connection->stop_ReSend(); |
TickerEvent[0] = false; |
break; |
} |
1485,8 → 1486,6 |
case 'L' : // DONE 0.71g |
if (ToolBox::Decode64(RX)) |
{ |
o_Connection->stop_ReSend(); |
int LCD[150]; |
memcpy(LCD,RX.Decode, sizeof(RX.Decode)); |
1494,6 → 1493,8 |
LCD_Page = RX.Decode[0]; |
LCD_MAX_Page = RX.Decode[1]; |
TickerEvent[0] = false; |
} |
break; |
// Analoglabels |
1500,8 → 1501,6 |
case 'A' : // DONE 0.71g |
if (ToolBox::Decode64(RX)) |
{ |
o_Connection->stop_ReSend(); |
int Position = RX.Decode[0]; |
if (Position != 31) |
{ |
1541,7 → 1540,7 |
case 'V' : // DONE 0.71h |
if (ToolBox::Decode64(RX)) |
{ |
o_Connection->stop_ReSend(); |
TickerEvent[0] = false; |
Mode.ID = HardwareID; |
Mode.VERSION_MAJOR = RX.Decode[0]; |
/QMK-Groundstation/trunk/Forms/wdg_Settings.ui |
---|
1854,6 → 1854,30 |
</widget> |
</item> |
</layout> |
<zorder>label_37</zorder> |
<zorder>cb_5_1</zorder> |
<zorder>label_44</zorder> |
<zorder>label_38</zorder> |
<zorder>cb_5_2</zorder> |
<zorder>label_45</zorder> |
<zorder>label_39</zorder> |
<zorder>cb_5_3</zorder> |
<zorder>label_46</zorder> |
<zorder>label_40</zorder> |
<zorder>sb_5_4</zorder> |
<zorder>label_47</zorder> |
<zorder>label_41</zorder> |
<zorder>sb_5_5</zorder> |
<zorder>label_48</zorder> |
<zorder>label_42</zorder> |
<zorder>cb_5_6</zorder> |
<zorder>label_49</zorder> |
<zorder>label_43</zorder> |
<zorder>sb_5_7</zorder> |
<zorder>label_50</zorder> |
<zorder>label_133</zorder> |
<zorder>cb_5_8</zorder> |
<zorder>label_135</zorder> |
</widget> |
</item> |
<item row="0" column="1"> |
4888,9 → 4912,8 |
<widget class="QLabel" name="label_153"> |
<property name="font"> |
<font> |
<weight>50</weight> |
<italic>false</italic> |
<bold>false</bold> |
<weight>75</weight> |
<bold>true</bold> |
</font> |
</property> |
<property name="text"> |
4897,8 → 4920,8 |
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> |
<html><head><meta name="qrichtext" content="1" /><style type="text/css"> |
p, li { white-space: pre-wrap; } |
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> |
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Position Hold Login Time:</span></p></body></html></string> |
</style></head><body style=" font-family:'Sans Serif'; font-size:11pt; font-weight:600; font-style:normal;"> |
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Position Hold Login Time:</p></body></html></string> |
</property> |
</widget> |
</item> |