Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

Question

Answer

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.

Why are we sending RC messages through PM to get to AM?

This decision was made at least for the MVP to keep all messages going to AM during flight from the same source (PM) and of the same format (waypoints).

Why are we using Mail Queues?

This is a temporary solution until a better one can be prioritized. This “queue” should only have maximum one message at a time so that a replacement (that is not a queue) can just be dropped in.

  • No labels