|
|
@ -85,6 +85,7 @@ const char* Vehicle::_clockFactGroupName = "clock"; |
|
|
|
const char* Vehicle::_distanceSensorFactGroupName = "distanceSensor"; |
|
|
|
const char* Vehicle::_distanceSensorFactGroupName = "distanceSensor"; |
|
|
|
const char* Vehicle::_estimatorStatusFactGroupName = "estimatorStatus"; |
|
|
|
const char* Vehicle::_estimatorStatusFactGroupName = "estimatorStatus"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Standard connected vehicle
|
|
|
|
Vehicle::Vehicle(LinkInterface* link, |
|
|
|
Vehicle::Vehicle(LinkInterface* link, |
|
|
|
int vehicleId, |
|
|
|
int vehicleId, |
|
|
|
int defaultComponentId, |
|
|
|
int defaultComponentId, |
|
|
@ -403,6 +404,13 @@ Vehicle::Vehicle(MAV_AUTOPILOT firmwareType, |
|
|
|
, _distanceSensorFactGroup(this) |
|
|
|
, _distanceSensorFactGroup(this) |
|
|
|
{ |
|
|
|
{ |
|
|
|
_commonInit(); |
|
|
|
_commonInit(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Offline editing vehicle tracks settings changes for offline editing settings
|
|
|
|
|
|
|
|
connect(_settingsManager->appSettings()->offlineEditingFirmwareType(), &Fact::rawValueChanged, this, &Vehicle::_offlineFirmwareTypeSettingChanged); |
|
|
|
|
|
|
|
connect(_settingsManager->appSettings()->offlineEditingVehicleType(), &Fact::rawValueChanged, this, &Vehicle::_offlineVehicleTypeSettingChanged); |
|
|
|
|
|
|
|
connect(_settingsManager->appSettings()->offlineEditingCruiseSpeed(), &Fact::rawValueChanged, this, &Vehicle::_offlineCruiseSpeedSettingChanged); |
|
|
|
|
|
|
|
connect(_settingsManager->appSettings()->offlineEditingHoverSpeed(), &Fact::rawValueChanged, this, &Vehicle::_offlineHoverSpeedSettingChanged); |
|
|
|
|
|
|
|
|
|
|
|
_firmwarePlugin->initializeVehicle(this); |
|
|
|
_firmwarePlugin->initializeVehicle(this); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -439,12 +447,6 @@ void Vehicle::_commonInit(void) |
|
|
|
connect(_rallyPointManager, &RallyPointManager::error, this, &Vehicle::_rallyPointManagerError); |
|
|
|
connect(_rallyPointManager, &RallyPointManager::error, this, &Vehicle::_rallyPointManagerError); |
|
|
|
connect(_rallyPointManager, &RallyPointManager::loadComplete, this, &Vehicle::_rallyPointLoadComplete); |
|
|
|
connect(_rallyPointManager, &RallyPointManager::loadComplete, this, &Vehicle::_rallyPointLoadComplete); |
|
|
|
|
|
|
|
|
|
|
|
// Offline editing vehicle tracks settings changes for offline editing settings
|
|
|
|
|
|
|
|
connect(_settingsManager->appSettings()->offlineEditingFirmwareType(), &Fact::rawValueChanged, this, &Vehicle::_offlineFirmwareTypeSettingChanged); |
|
|
|
|
|
|
|
connect(_settingsManager->appSettings()->offlineEditingVehicleType(), &Fact::rawValueChanged, this, &Vehicle::_offlineVehicleTypeSettingChanged); |
|
|
|
|
|
|
|
connect(_settingsManager->appSettings()->offlineEditingCruiseSpeed(), &Fact::rawValueChanged, this, &Vehicle::_offlineCruiseSpeedSettingChanged); |
|
|
|
|
|
|
|
connect(_settingsManager->appSettings()->offlineEditingHoverSpeed(), &Fact::rawValueChanged, this, &Vehicle::_offlineHoverSpeedSettingChanged); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Flight modes can differ based on advanced mode
|
|
|
|
// Flight modes can differ based on advanced mode
|
|
|
|
connect(_toolbox->corePlugin(), &QGCCorePlugin::showAdvancedUIChanged, this, &Vehicle::flightModesChanged); |
|
|
|
connect(_toolbox->corePlugin(), &QGCCorePlugin::showAdvancedUIChanged, this, &Vehicle::flightModesChanged); |
|
|
|
|
|
|
|
|
|
|
|