Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 312 → Rev 313

/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, false);
o_Connection->send_Cmd('n', ADDRESS_FC, TX_Data, 1, true);
}
 
// 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, false);
o_Connection->send_Cmd('n', ADDRESS_FC, TX_Data, 1, true);
}
 
void dlg_MotorMixer::slot_pb_WRITE()
{
int Length = get_MotorConfig();
o_Connection->send_Cmd('m', ADDRESS_FC, TX_Data, Length, false);
o_Connection->send_Cmd('m', ADDRESS_FC, TX_Data, Length, true);
}
 
void dlg_MotorMixer::slot_pb_LOAD()
/QMK-Groundstation/trunk/Forms/mktool.cpp
724,10 → 724,6
{
if (!f_Map->isVisible())
{
// delete f_Map;
// f_Map = new dlg_Map(this);
// f_Map->create_Map(Settings);
 
f_Map->show();
}
}
1140,7 → 1136,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, true);
o_Connection->send_Cmd('p', ADDRESS_FC, TX_Data, 0, false);
 
Ticker->setInterval(500);
TickerEvent[1] = true;
1182,7 → 1178,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);
o_Connection->send_Cmd('q', ADDRESS_FC, TX_Data, 1, true);
}
 
void MKTool::slot_SetFCSettings() // DONE 0.71g
1191,7 → 1187,7
 
lb_Status->setText(tr("Schreibe FlightCtrl-Settings."));
 
o_Connection->send_Cmd('s', ADDRESS_FC, TX_Data2, MaxParameter + 2, false);
o_Connection->send_Cmd('s', ADDRESS_FC, TX_Data2, MaxParameter + 2, true);
}
 
 
1401,6 → 1397,8
case 'N' :
if (ToolBox::Decode64(RX))
{
o_Connection->stop_ReSend();
 
if (RX.Decode[0] == VERSION_MIXER)
{
f_MotorMixer->set_MotorConfig(RX);
1411,6 → 1409,8
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))
{
TickerEvent[0] = false;
o_Connection->stop_ReSend();
 
if (RX.Decode[1] == VERSION_SETTINGS)
{
1445,7 → 1445,6
{
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);
1462,7 → 1461,7
break;
// Settings geschrieben
case 'S' : // DONE 0.71g
TickerEvent[0] = false;
o_Connection->stop_ReSend();
break;
}
 
1486,6 → 1485,8
case 'L' : // DONE 0.71g
if (ToolBox::Decode64(RX))
{
o_Connection->stop_ReSend();
 
int LCD[150];
memcpy(LCD,RX.Decode, sizeof(RX.Decode));
 
1493,8 → 1494,6
 
LCD_Page = RX.Decode[0];
LCD_MAX_Page = RX.Decode[1];
 
TickerEvent[0] = false;
}
break;
// Analoglabels
1501,6 → 1500,8
case 'A' : // DONE 0.71g
if (ToolBox::Decode64(RX))
{
o_Connection->stop_ReSend();
 
int Position = RX.Decode[0];
if (Position != 31)
{
1540,7 → 1541,7
case 'V' : // DONE 0.71h
if (ToolBox::Decode64(RX))
{
TickerEvent[0] = false;
o_Connection->stop_ReSend();
 
Mode.ID = HardwareID;
Mode.VERSION_MAJOR = RX.Decode[0];
/QMK-Groundstation/trunk/Forms/wdg_Settings.ui
1854,30 → 1854,6
</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">
4912,8 → 4888,9
<widget class="QLabel" name="label_153">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="text">
4920,8 → 4897,8
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans Serif'; font-size:11pt; font-weight:600; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Position Hold Login Time:&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Position Hold Login Time:&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>