Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. What does SM do?

    1. SM manages the drone at the highest level. It acts as the “brains” of the drone and decides the mode of operation based on the inputs from Telemetry Manager, RC, SF, and CV messages.

    2. SM decodes RC messages, converts them into waypoint targets and passes them with a “TELEOP” waypoint type to PM which just passes them to AM. These waypoints are a higher priority

    3. SM decodes CV waypoints and passes waypoint and with a respective waypoint_type to PM so it can plan the path and send the waypoints (one at a time) to AM.

    4. SM also passes SF data through PM which sends it to AM.

    5. SM takes any returned data from AM (from previous operation cycles) and passes it to Telemetry to be sent to the ground station.

    6. Outside of flight SM shuts down threads and sets motors to 0. It also shuts down everything and sets motors to 0 if it goes into fatal failure mode.