Browse Source

Merge branch 'experimental' of github.com:pixhawk/qgroundcontrol into experimental

QGC4.4
pixhawk 15 years ago
parent
commit
4b1ae00c64
  1. 8
      settings/ParameterList.xml
  2. 2
      src/ui/QGCRemoteControlView.cc
  3. 14
      src/ui/RadioCalibration/AirfoilServoCalibrator.cc

8
settings/ParameterList.xml

@ -36,7 +36,7 @@
/> />
<Parameter <Parameter
SimulinkPath="avionics_src/sm_avionics/Attitude_Controller/PID_AIL/Angle_Norm/Max_Min_Angle/" SimulinkPath="avionics_src/sm_avionics/Attitude_Controller/PID_AIL/Angle_Norm/Max_Min_Angle/"
SimulinkParameterName="Constant Value" SimulinkParameterName="Value"
QGCParamID="ANG_AIL_MAX" QGCParamID="ANG_AIL_MAX"
/> />
<!-- Elevator Control Parameters --> <!-- Elevator Control Parameters -->
@ -57,7 +57,7 @@
/> />
<Parameter <Parameter
SimulinkPath="avionics_src/sm_avionics/Attitude_Controller/PID_ELE/Angle_Norm/Max_Min_Angle/" SimulinkPath="avionics_src/sm_avionics/Attitude_Controller/PID_ELE/Angle_Norm/Max_Min_Angle/"
SimulinkParameterName="Constant Value" SimulinkParameterName="Value"
QGCParamID="ANG_ELE_MAX" QGCParamID="ANG_ELE_MAX"
/> />
</Block> </Block>
@ -199,7 +199,7 @@
/> />
<Parameter <Parameter
SimulinkPath="avionics_src/sm_avionics/Servo_Outputs/AileronMix/Controller_Mix/" SimulinkPath="avionics_src/sm_avionics/Servo_Outputs/AileronMix/Controller_Mix/"
SimulinkParameterName="Constant Value" SimulinkParameterName="Value"
QGCParamID="MIX_AIL" QGCParamID="MIX_AIL"
/> />
<!-- Settings for Elevator Servo --> <!-- Settings for Elevator Servo -->
@ -220,7 +220,7 @@
/> />
<Parameter <Parameter
SimulinkPath="avionics_src/sm_avionics/Servo_Outputs/ElevatorMix/Controller_Mix/" SimulinkPath="avionics_src/sm_avionics/Servo_Outputs/ElevatorMix/Controller_Mix/"
SimulinkParameterName="Constant Value" SimulinkParameterName="Value"
QGCParamID="MIX_ELE" QGCParamID="MIX_ELE"
/> />
</Block> </Block>

2
src/ui/QGCRemoteControlView.cc

@ -115,7 +115,7 @@ void QGCRemoteControlView::setUASId(int id)
connect(newUAS, SIGNAL(remoteControlRSSIChanged(float)), this, SLOT(setRemoteRSSI(float))); connect(newUAS, SIGNAL(remoteControlRSSIChanged(float)), this, SLOT(setRemoteRSSI(float)));
connect(newUAS, SIGNAL(remoteControlChannelRawChanged(int,float)), this, SLOT(setChannelRaw(int,float))); connect(newUAS, SIGNAL(remoteControlChannelRawChanged(int,float)), this, SLOT(setChannelRaw(int,float)));
// connect(newUAS, SIGNAL(remoteControlChannelRawChanged(int,float)), calibrationWindow, SLOT(setChannelRaw(int,float))); connect(newUAS, SIGNAL(remoteControlChannelRawChanged(int,float)), calibrationWindow, SLOT(setChannel(int,float)));
connect(newUAS, SIGNAL(remoteControlChannelScaledChanged(int,float)), this, SLOT(setChannelScaled(int,float))); connect(newUAS, SIGNAL(remoteControlChannelScaledChanged(int,float)), this, SLOT(setChannelScaled(int,float)));
// connect(newUAS, SIGNAL(remoteControlChannelScaledChanged(int,float)), calibrationWindow, SLOT(setChannelScaled(int,float))); // connect(newUAS, SIGNAL(remoteControlChannelScaledChanged(int,float)), calibrationWindow, SLOT(setChannelScaled(int,float)));

14
src/ui/RadioCalibration/AirfoilServoCalibrator.cc

@ -43,21 +43,21 @@ AirfoilServoCalibrator::AirfoilServoCalibrator(AirfoilType type, QWidget *parent
QLabel *lowPulseString; QLabel *lowPulseString;
if (type == AILERON) if (type == AILERON)
{ {
highPulseString = new QLabel(tr("Bank Left")); highPulseString = new QLabel(tr("Bank Right"));
centerPulseString = new QLabel(tr("Center")); centerPulseString = new QLabel(tr("Center"));
lowPulseString = new QLabel(tr("Bank Right")); lowPulseString = new QLabel(tr("Bank Left"));
} }
else if (type == ELEVATOR) else if (type == ELEVATOR)
{ {
highPulseString = new QLabel(tr("Nose Down")); highPulseString = new QLabel(tr("Nose Up"));
centerPulseString = new QLabel(tr("Center")); centerPulseString = new QLabel(tr("Center"));
lowPulseString = new QLabel(tr("Nose Up")); lowPulseString = new QLabel(tr("Nose Down"));
} }
else if (type == RUDDER) else if (type == RUDDER)
{ {
highPulseString = new QLabel(tr("Nose Left")); highPulseString = new QLabel(tr("Nose Right"));
centerPulseString = new QLabel(tr("Center")); centerPulseString = new QLabel(tr("Center"));
lowPulseString = new QLabel(tr("Nose Right")); lowPulseString = new QLabel(tr("Nose Left"));
} }
else else
{ {
@ -90,8 +90,6 @@ AirfoilServoCalibrator::AirfoilServoCalibrator(AirfoilType type, QWidget *parent
connect(lowButton, SIGNAL(clicked()), this, SLOT(setLow())); connect(lowButton, SIGNAL(clicked()), this, SLOT(setLow()));
} }
void AirfoilServoCalibrator::setHigh() void AirfoilServoCalibrator::setHigh()
{ {
highPulseWidth->setText(QString::number(static_cast<double>(logExtrema()))); highPulseWidth->setText(QString::number(static_cast<double>(logExtrema())));

Loading…
Cancel
Save