Skip to content

Add JSON Return Format to Telemetry & Command decode_packet Functions #171

@jhhocs

Description

@jhhocs

Task Description

Update the decode_packet function to allow the programmer to specify the return format of telemetry and command. Supported formats are tuple (default, already complete) and JSON. The files that need to be updated are found here.

Example function header:

decode_packet(encoded_string, format="tuple")

Note

There is a chance that this object (and all other commands) will need to include some sort of packetID to identify specific command packets that are sent. For example, if two heartbeat commands are sent, we need to know exactly which one the vehicle is responding to.

Checklist

  • Telemetry
    • Add JSON return format to decode_packet
    • Update in code documentation
    • Testing
  • EmergencyStop
    • Add JSON return format to decode_packet
    • Update in code documentation
    • Testing
  • KeepIn
    • Add JSON return format to decode_packet
    • Update in code documentation
    • Testing
  • KeepOut
    • Add JSON return format to decode_packet
    • Update in code documentation
    • Testing
  • PatientLocation
    • Add JSON return format to decode_packet
    • Update in code documentation
    • Testing
  • SearchArea
    • Add JSON return format to decode_packet
    • Update in code documentation
    • Testing

Metadata

Metadata

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions