afrl-rq / OpenUxAS-SoI

Project for multi-UAV cooperative decision making
Other
71 stars 38 forks source link

tasks handle repeat configuration messages. #52

Closed ctaylor80 closed 6 years ago

ctaylor80 commented 6 years ago

if a configuration message is sent after a task has been initialized, then m_speedAltitudeVsEligibleEntityIds will have the id of the entity appended. The appending will always happen, allowing the same entity to be inserted multiple times. This is then used to calculate task options incorrectly or redundantly.

Another approach would be to use a set instead of a vector. This was not done because it would touch many tasks, some of which use the first element, which a set does not have.

The changes under the configure method are redundant because the configs there are guaranteed to be distinct since they come from the TaskManager. These changes are for completeness.