CALPOLY MECHATRONICS
Documentation for all Mechatronics Labs
ME405_FP_UserTask.py File Reference

Interprets a "go" signal, builds a CSV, & sends it to the FrontEnd. More...

Functions

def ME405_FP_UserTask.userInterfaceFun ()
 Sets the USB_VCP method to read mode. More...
 

Detailed Description

Interprets a "go" signal, builds a CSV, & sends it to the FrontEnd.

Upon receiving a certain signal from the FrontEnd, the UI_Task FSM switches states to begin plugging in a set of times to an arbitrary function in order to generate an output vector. Upon reaching 3000s, the data is then packaged as a CSV file and written to the FrontEnd using serial communication.
source code: https://bitbucket.org/eliotBriefer/me405_term_project/src/master/Tasks/ME405_FP_UserTask.py

Author
Nicholas Greco
Date
4/04/2021

Function Documentation

◆ userInterfaceFun()

def ME405_FP_UserTask.userInterfaceFun ( )

Sets the USB_VCP method to read mode.

The user needs to be able to make a variety of choices regarding the operation of the balancing platform. Those options are specified below:

  • b (Begin Balancing)
  • h (Stop Collecting Data & end the program)
  • d (Collect Data)
  • e (Exit Program)
  • r (Reset Motor Fault)
  • x (Stop Collecting Data & continue the Program)

Entering any of these values into the PuTTY console will cause the corresponding action in the program.