mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
Merged in f5soh/librepilot/LP-247_Wizard_naza_gps (pull request #186)
LP-247 Add Naza GPS to Wizard
This commit is contained in:
commit
98a83a5cf2
@ -237,6 +237,9 @@ void ConnectionDiagram::setupGraphicsScene()
|
||||
case VehicleConfigurationSource::GPS_PLATINUM:
|
||||
elementsToShow << QString("%1OPGPS-v9").arg(prefix);
|
||||
break;
|
||||
case VehicleConfigurationSource::GPS_NAZA:
|
||||
elementsToShow << QString("%1NazaGPS").arg(prefix);
|
||||
break;
|
||||
case VehicleConfigurationSource::GPS_UBX:
|
||||
elementsToShow << QString("%1OPGPS-v8-ublox").arg(prefix);
|
||||
break;
|
||||
|
@ -83,6 +83,11 @@ void GpsPage::setupSelection(Selection *selection)
|
||||
"OPGPS-v9",
|
||||
SetupWizard::GPS_PLATINUM);
|
||||
|
||||
selection->addItem(tr("Naza GPS"),
|
||||
tr("Select this option to use the Naza GPS with integrated Magnetometer."),
|
||||
"NazaGPS",
|
||||
SetupWizard::GPS_NAZA);
|
||||
|
||||
selection->addItem(tr("U-Blox Based + Magnetometer"),
|
||||
tr("Select this option for the generic U-Blox chipset based GPS + I2C Magnetometer.\n\n"
|
||||
"GPS is connected to MainPort and two wires I2C to FlexiPort."),
|
||||
|
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 3.2 MiB After Width: | Height: | Size: 3.4 MiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 485 KiB After Width: | Height: | Size: 581 KiB |
@ -434,6 +434,9 @@ QString SetupWizard::getSummaryText()
|
||||
case GPS_PLATINUM:
|
||||
summary.append(tr("OpenPilot Platinum"));
|
||||
break;
|
||||
case GPS_NAZA:
|
||||
summary.append(tr("Naza GPS"));
|
||||
break;
|
||||
case GPS_UBX_FLEXI_I2CMAG:
|
||||
summary.append(tr("Generic UBLOX + I2C Magnetometer"));
|
||||
break;
|
||||
|
@ -259,6 +259,19 @@ void VehicleConfigurationHelper::applyHardwareConfiguration()
|
||||
addModifiedObject(magSettings, tr("Writing External Mag sensor settings"));
|
||||
break;
|
||||
}
|
||||
case VehicleConfigurationSource::GPS_NAZA:
|
||||
{
|
||||
gpsData.DataProtocol = GPSSettings::DATAPROTOCOL_DJI;
|
||||
gpsData.UbxAutoConfig = GPSSettings::UBXAUTOCONFIG_DISABLED;
|
||||
AuxMagSettings *magSettings = AuxMagSettings::GetInstance(m_uavoManager);
|
||||
Q_ASSERT(magSettings);
|
||||
AuxMagSettings::DataFields magsData = magSettings->getData();
|
||||
magsData.Type = AuxMagSettings::TYPE_DJI;
|
||||
magsData.Usage = AuxMagSettings::USAGE_AUXONLY;
|
||||
magSettings->setData(magsData);
|
||||
addModifiedObject(magSettings, tr("Writing External Mag sensor settings"));
|
||||
break;
|
||||
}
|
||||
case VehicleConfigurationSource::GPS_UBX_FLEXI_I2CMAG:
|
||||
{
|
||||
gpsData.DataProtocol = GPSSettings::DATAPROTOCOL_UBX;
|
||||
|
@ -68,7 +68,7 @@ public:
|
||||
enum SERVO_TYPE { SERVO_ANALOG, SERVO_DIGITAL, SERVO_UNKNOWN };
|
||||
enum INPUT_TYPE { INPUT_PWM, INPUT_PPM, INPUT_SBUS, INPUT_DSM, INPUT_SRXL, INPUT_HOTT_SUMD, INPUT_EXBUS, INPUT_UNKNOWN };
|
||||
enum AIRSPEED_TYPE { AIRSPEED_ESTIMATE, AIRSPEED_EAGLETREE, AIRSPEED_MS4525, AIRSPEED_DISABLED };
|
||||
enum GPS_TYPE { GPS_PLATINUM, GPS_UBX_FLEXI_I2CMAG, GPS_UBX, GPS_NMEA, GPS_DISABLED };
|
||||
enum GPS_TYPE { GPS_PLATINUM, GPS_NAZA, GPS_UBX_FLEXI_I2CMAG, GPS_UBX, GPS_NMEA, GPS_DISABLED };
|
||||
enum RADIO_SETTING { RADIO_TELEMETRY, RADIO_DISABLED };
|
||||
|
||||
virtual VehicleConfigurationSource::CONTROLLER_TYPE getControllerType() const = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user