![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Teacher version
Dependencies: mbed lib_workshop_2019
Diff: includes/test_motor.h
- Revision:
- 4:bf5caf4c0c88
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/includes/test_motor.h Wed Oct 23 19:25:12 2019 +0000 @@ -0,0 +1,29 @@ +/** + * @author geoffrey Vaquette + * + * @section DESCRIPTION + * + * Testing value from ultrasonic sensors on robot + * + */ + +#ifndef TEST_MOTOR_H +#define TEST_MOTOR_H + +#include "mbed.h" + +enum e_direction { + FORWARD, + BACKWARD + }; + +/// <summary>Sorts the list to by the given column</summary> +/// <param name="sel">Column to be sorted (index-1-based) and sort direction (pos. = ascending)</param> +/// <returns>Documentation of return type</returns> +void ft_run_motor(e_direction direction, double duty_cycle, PwmOut pwm_mot, DigitalOut dirA, DigitalOut dirB); + +void ft_test_motor(PwmOut pin_pwm_mot, DigitalOut pin_dirA, DigitalOut pin_dirB, Serial &pc); + + + +#endif \ No newline at end of file