mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-13 20:40:38 +08:00
refactor(navigator): pass mission_s by const reference
This commit is contained in:
@@ -1440,7 +1440,7 @@ void MissionBase::checkClimbRequired(int32_t mission_item_index)
|
||||
}
|
||||
}
|
||||
|
||||
bool MissionBase::checkMissionDataChanged(mission_s new_mission)
|
||||
bool MissionBase::checkMissionDataChanged(const mission_s &new_mission)
|
||||
{
|
||||
/* count and land_index are the same if the mission_id did not change. We do not care about changes in geofence or rally counters.*/
|
||||
return ((new_mission.mission_dataman_id != _mission.mission_dataman_id) ||
|
||||
|
||||
@@ -464,7 +464,7 @@ private:
|
||||
* @param[in] new_mission new mission received over uorb
|
||||
* @return true if the relevant mission data has changed, false otherwise
|
||||
*/
|
||||
bool checkMissionDataChanged(mission_s new_mission);
|
||||
bool checkMissionDataChanged(const mission_s &new_mission);
|
||||
|
||||
/**
|
||||
* @brief update current mission altitude after the home position has changed.
|
||||
|
||||
Reference in New Issue
Block a user