|
ME 405 Romi
|
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") | |
| pc_micro_reader.average | ( | data_list | ) |
brief Averages data
| data_list | data list Returns
|
Definition at line 49 of file pc_micro_reader.py.
| 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.


| pc_micro_reader.line_test | ( | ) |
Definition at line 296 of file pc_micro_reader.py.
| pc_micro_reader.motorGain | ( | test_num, | |
| data ) |
brief Returns motor gain of motor
| test_num,number | of tests |
| data | data from tests Returns
|
Definition at line 73 of file pc_micro_reader.py.
| pc_micro_reader.plotData | ( | times, | |
| data, | |||
| thead, | |||
| dhead, | |||
| legend ) |
brief Plots passed data
| times | time data |
| data | data being passed |
| thead | timer header text |
| dhead | distance header text |
| legend | legend text |
Definition at line 40 of file pc_micro_reader.py.

| 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.

| pc_micro_reader.saveData | ( | ) |
brief Saves the data sent from a single test
Definition at line 30 of file pc_micro_reader.py.

| pc_micro_reader.saveHeaders | ( | ) |
brief Reads the header line from the data
Definition at line 24 of file pc_micro_reader.py.

| pc_micro_reader.timeConstant | ( | data | ) |
brief Returns time cosntant of motor
| data | data from tests Returns
|
Definition at line 59 of file pc_micro_reader.py.
| int pc_micro_reader.angular_lim = 10 |
Definition at line 20 of file pc_micro_reader.py.
| int pc_micro_reader.arc_lim = 100 |
Definition at line 18 of file pc_micro_reader.py.
| pc_micro_reader.baudrate |
Definition at line 326 of file pc_micro_reader.py.
| list pc_micro_reader.motor_gains_l = [] |
Definition at line 13 of file pc_micro_reader.py.
| list pc_micro_reader.motor_gains_r = [] |
Definition at line 15 of file pc_micro_reader.py.
| 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.
| int pc_micro_reader.period = 13/1000 |
Definition at line 12 of file pc_micro_reader.py.
| pc_micro_reader.port |
Definition at line 326 of file pc_micro_reader.py.
| bool pc_micro_reader.test_done = True |
Definition at line 21 of file pc_micro_reader.py.
| int pc_micro_reader.test_end = 1 |
Definition at line 17 of file pc_micro_reader.py.
| list pc_micro_reader.time_constnats_l = [] |
Definition at line 14 of file pc_micro_reader.py.
| list pc_micro_reader.time_constnats_r = [] |
Definition at line 16 of file pc_micro_reader.py.
| pc_micro_reader.timeout |
Definition at line 326 of file pc_micro_reader.py.
| 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.
| int pc_micro_reader.VALUES_SENT = 50 |
Definition at line 11 of file pc_micro_reader.py.
| int pc_micro_reader.velo_lim = 300 |
Definition at line 19 of file pc_micro_reader.py.