|
list | main.xypos = [] |
|
| main.theta1 = task_share.Share('f', thread_protect = False, name = "Motor Angle 1") |
|
| main.theta2 = task_share.Share('f', thread_protect = False, name = "Motor Angle 2") |
|
| main.next_theta1 = task_share.Share('f', thread_protect = False, name = "Subsequent Motor Angle 1") |
|
| main.next_theta2 = task_share.Share('f', thread_protect = False, name = "Subsequent Motor Angle 2") |
|
| main.list_theta1 |
|
| main.list_theta2 |
|
| main.next_x |
|
| main.next_y |
|
| main.ENA = pyb.Pin (pyb.Pin.board.PA10, pyb.Pin.OUT_PP) |
|
| main.IN1 = pyb.Pin (pyb.Pin.board.PB4, pyb.Pin.OUT_PP) |
|
| main.IN2 = pyb.Pin (pyb.Pin.board.PB5, pyb.Pin.OUT_PP) |
|
| main.tim3 = pyb.Timer (3, freq=20000) |
|
| main.ENB = pyb.Pin (pyb.Pin.board.PC1, pyb.Pin.OUT_PP) |
|
| main.IN3 = pyb.Pin (pyb.Pin.board.PA0, pyb.Pin.OUT_PP) |
|
| main.IN4 = pyb.Pin (pyb.Pin.board.PA1, pyb.Pin.OUT_PP) |
|
| main.tim5 = pyb.Timer (5, freq=20000) |
|
| main.mot1 = motor_drv.MotorDriver(ENA, IN1, IN2, tim3) |
|
| main.enc1 = EncoderReader.EncoderReader(1) |
|
| main.controller1 = controlloop.ClosedLoop(10, 0) |
|
| main.mot2 = motor_drv.MotorDriver(ENB, IN3, IN4, tim5) |
|
| main.enc2 = EncoderReader.EncoderReader(2) |
|
| main.controller2 = controlloop.ClosedLoop(10, 0) |
|
| main.pinC2 = pyb.Pin (pyb.Pin.board.PC2, pyb.Pin.IN) |
|
| main.pinC3 = pyb.Pin (pyb.Pin.board.PC3, pyb.Pin.IN) |
|
| main.pinC0 = pyb.Pin(pyb.Pin.board.PC0, pyb.Pin.OUT_PP) |
|
| main.pinB3 = pyb.Pin(pyb.Pin.board.PB3, pyb.Pin.IN) |
|
| main.tim1 = pyb.Timer (1, freq=100) |
|
| main.filename = user_task.run() |
|
| main.coord_values = x_yimport.x_yimport(filename) |
|
| main.x = coord_values[0] |
|
| main.y = coord_values[1] |
|
int | main.constant = 8384/(2*3.1415)*20/110 |
|
| main.output_kin = kinematics.inv_kinematics(x[i], y[i]) |
|
| main.mot_task1 |
|
| main.mot_task2 |
|
| main.pos_checker3 |
|
| main.vcp = pyb.USB_VCP () |
|
Reads ADC pin on Nucleo and saves data in queue.
An adapted main file from basic_tasks.py.
This file instantiates the output and analog read out pins. The ADC pin value is read every millisecond then the corresponding data entry gets added to the queue.
- Author
- Jeremy Baechler
-
Kendall Chappell
-
Matthew Wimberley
- Date
- 16-Feb-2022
This file contains a demonstration program that runs some tasks, an inter-task shared variable, and a queue. There are 3 tasks that run our SCARA robot and we added motor control functions that act as the scheduler.
- Author
- Jeremy Baechler
-
Kendall Chappell
-
Matthew Wimberley
- Date
- 31-Jan-2022