ME 405 Romi
Loading...
Searching...
No Matches
pc_micro_reader Namespace Reference

Functions

 saveHeaders ()
 brief Reads the header line from the data
 saveData ()
 brief Saves the data sent from a single test
 plotData (times, data, thead, dhead, legend)
 brief Plots passed data
 average (data_list)
 brief Averages data
 timeConstant (data)
 brief Returns time cosntant of motor
 motorGain (test_num, data)
 brief Returns motor gain of motor
 get_test_plots ()
 brief Saves and creates test plots Effects
 run_tests ()
 brief Runs the User tests
 line_test ()

Variables

int NUMBERS_OF_TESTS = 10
 User tests.
int VALUES_SENT = 50
int period = 13/1000
list motor_gains_l = []
list time_constnats_l = []
list motor_gains_r = []
list time_constnats_r = []
int test_end = 1
int arc_lim = 100
int velo_lim = 300
int angular_lim = 10
bool test_done = True
 port
 baudrate
 timeout
 user_input = input("press c for calibrate, t for step test, q to quit, g to go, i for imu data")

Function Documentation

◆ average()

pc_micro_reader.average ( data_list)

brief Averages data

Parameters
data_listdata list Returns

average of data being passed

Definition at line 49 of file pc_micro_reader.py.

◆ get_test_plots()

pc_micro_reader.get_test_plots ( )

brief Saves and creates test plots Effects

Plots and saves plots to computer

Definition at line 84 of file pc_micro_reader.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ line_test()

pc_micro_reader.line_test ( )

Definition at line 296 of file pc_micro_reader.py.

◆ motorGain()

pc_micro_reader.motorGain ( test_num,
data )

brief Returns motor gain of motor

Parameters
test_num,numberof tests
datadata from tests Returns

Motor gain

Definition at line 73 of file pc_micro_reader.py.

◆ plotData()

pc_micro_reader.plotData ( times,
data,
thead,
dhead,
legend )

brief Plots passed data

Parameters
timestime data
datadata being passed
theadtimer header text
dheaddistance header text
legendlegend text

Definition at line 40 of file pc_micro_reader.py.

Here is the caller graph for this function:

◆ run_tests()

pc_micro_reader.run_tests ( )

brief Runs the User tests

Promts user to select which tests to perform These commands are: "Send a command: s=full motor step response, t=test, 0=stop romi, 1=straight, 2=Arc turn, 3= pivot, q=quit: "

Definition at line 163 of file pc_micro_reader.py.

Here is the call graph for this function:

◆ saveData()

pc_micro_reader.saveData ( )

brief Saves the data sent from a single test

Definition at line 30 of file pc_micro_reader.py.

Here is the caller graph for this function:

◆ saveHeaders()

pc_micro_reader.saveHeaders ( )

brief Reads the header line from the data

Definition at line 24 of file pc_micro_reader.py.

Here is the caller graph for this function:

◆ timeConstant()

pc_micro_reader.timeConstant ( data)

brief Returns time cosntant of motor

Parameters
datadata from tests Returns

time constant value

Definition at line 59 of file pc_micro_reader.py.

Variable Documentation

◆ angular_lim

int pc_micro_reader.angular_lim = 10

Definition at line 20 of file pc_micro_reader.py.

◆ arc_lim

int pc_micro_reader.arc_lim = 100

Definition at line 18 of file pc_micro_reader.py.

◆ baudrate

pc_micro_reader.baudrate

Definition at line 326 of file pc_micro_reader.py.

◆ motor_gains_l

list pc_micro_reader.motor_gains_l = []

Definition at line 13 of file pc_micro_reader.py.

◆ motor_gains_r

list pc_micro_reader.motor_gains_r = []

Definition at line 15 of file pc_micro_reader.py.

◆ NUMBERS_OF_TESTS

int pc_micro_reader.NUMBERS_OF_TESTS = 10

User tests.

Project that allows user to select which tests to perform. Can perform step tests, and Romi motion tests. This project allows the user to connect to the Romi via bluetooth and communicate with the UI task.

Definition at line 10 of file pc_micro_reader.py.

◆ period

int pc_micro_reader.period = 13/1000

Definition at line 12 of file pc_micro_reader.py.

◆ port

pc_micro_reader.port

Definition at line 326 of file pc_micro_reader.py.

◆ test_done

bool pc_micro_reader.test_done = True

Definition at line 21 of file pc_micro_reader.py.

◆ test_end

int pc_micro_reader.test_end = 1

Definition at line 17 of file pc_micro_reader.py.

◆ time_constnats_l

list pc_micro_reader.time_constnats_l = []

Definition at line 14 of file pc_micro_reader.py.

◆ time_constnats_r

list pc_micro_reader.time_constnats_r = []

Definition at line 16 of file pc_micro_reader.py.

◆ timeout

pc_micro_reader.timeout

Definition at line 326 of file pc_micro_reader.py.

◆ user_input

pc_micro_reader.user_input = input("press c for calibrate, t for step test, q to quit, g to go, i for imu data")

Definition at line 327 of file pc_micro_reader.py.

◆ VALUES_SENT

int pc_micro_reader.VALUES_SENT = 50

Definition at line 11 of file pc_micro_reader.py.

◆ velo_lim

int pc_micro_reader.velo_lim = 300

Definition at line 19 of file pc_micro_reader.py.