100 likes | 110 Views
An executable program that launches the graphical interface and enables user interaction for the main user interface, connection dialog, and settings dialog. It also includes a communications subsystem for transmitting commands and a message listener for receiving messages.
E N D
Software classes • GUI Subsystem: • Driver : The executable portion of the program. Launches the graphical interface. • User Interface : A graphical C# class that sets up graphics and button listeners to drive user interaction for the main user interface • Connection Dialog :A graphical C# class that sets up graphics and button listeners to drive user interaction for the connection dialog. • Settings Dialog: A graphical C# class that sets up graphics and button listeners to drive user interaction for the settings dialog.
Communications SubsystemSerializable Message: A serializable class designed to transmit commands over a network to the software running on the robot’s laptop. METHODS: • Get_message – returns the string indicating the command type • Get_parameters – returns the array of strings that contain the parameters for the command • Get_id – returns the message’s ID number • Set_message – sets the string indicating the command type • Set_parameters – sets the parameters as an array of strings • Set_id – sets the message’s ID number
Message Generator :A subsystem with public methods that may be called to create and send messages to the on-board system. Design decisions HIDDEN by Mess Gen: • the format of the messages in the COMM PROTOCOL Methods: • Send_movement_message – creates and transmits a movement message to the on-board system • Send_rotation_message – creates and transmits a rotation message to the on-board system • Send_gripper_command – creates and transits a gripper message to the on-board system
Message Listener: A threaded subsystem that listens for incoming messages and updates its internal variables to reflect the values of those messages. METHODS: • Get_battery_status – returns an integer that reflects the percentage remaining of the robot’s battery. • Get_gripper_status – returns a string that reflects the status of the gripper arm • Listen – listens for messages from the network sockets.
Threads • input/output • button listeners • screen refresh • communication • sending commands • receiving commands • receiving telemetry
ANTICIPATED CHANGES • Comm Protocol • SRS • Design
MANAGEMENT INFO • Risks: • C# • Design Doc • Comm Protocol • Need to ensure design is well-formed and complete before moving on