Browse Source

fixed directions on airfoil calibrator

QGC4.4
Bryan Godbolt 14 years ago
parent
commit
7f59c693e8
  1. 8
      settings/ParameterList.xml
  2. 14
      src/ui/RadioCalibration/AirfoilServoCalibrator.cc

8
settings/ParameterList.xml

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

14
src/ui/RadioCalibration/AirfoilServoCalibrator.cc

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

Loading…
Cancel
Save