Skip to content

BUG: 1) Controller processed twice in flight.py and 2) wrong if condition for sensor measurement #948

@zuorenchen

Description

@zuorenchen

Describe the bug

  1. v1.12.0 refactors sensor and controller into __process_sensors_and_controllers_at_current_node. However, the controllers are processed once more in __simulate.

  2. The if condition for sensor measurement should check if the sensor exists in the time_node instead of flight.sensor

Expected behavior

  1. Remove duplicate
  2. Use node._component_sensor to trigger sensor measurement

Screenshots

Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions