mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 06:23:33 +08:00
Add manual seed to dataman hash to allow later incrementing the seed number for incompatible changes
This commit is contained in:
committed by
Lorenz Meier
parent
db774798fa
commit
ff0d7613b1
@@ -109,7 +109,7 @@ struct dataman_compat_s {
|
||||
uint32_t key;
|
||||
};
|
||||
|
||||
#define DM_COMPAT_KEY ((sizeof(struct mission_item_s) << 24) + (sizeof(struct mission_s) << 16) + (sizeof(struct fence_vertex_s) << 8) + sizeof(struct dataman_compat_s))
|
||||
#define DM_COMPAT_KEY (1 + (sizeof(struct mission_item_s) << 24) + (sizeof(struct mission_s) << 16) + (sizeof(struct fence_vertex_s) << 8) + sizeof(struct dataman_compat_s))
|
||||
|
||||
/** Maximum size in bytes of a single item instance is
|
||||
* defined by adding the structure type to the union below
|
||||
|
||||
@@ -499,7 +499,6 @@ MissionBlock::mission_item_to_position_setpoint(const struct mission_item_s *ite
|
||||
case NAV_CMD_TAKEOFF:
|
||||
// set pitch and ensure that the hold time is zero
|
||||
sp->pitch_min = item->pitch_min;
|
||||
sp->time_inside = 0.0f;
|
||||
case NAV_CMD_VTOL_TAKEOFF:
|
||||
sp->type = position_setpoint_s::SETPOINT_TYPE_TAKEOFF;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user