For coursework of group 3 in SOFT564Z

Dependencies:   Motordriver ros_lib_kinetic

Committer:
Jonathan738
Date:
Sun Jan 05 15:42:22 2020 +0000
Revision:
12:82b8fe254222
Parent:
6:3872858b7844
Added working version of TOF code

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Jonathan738 4:8afc50a3e4ac 1 #include "mbed.h"
Jonathan738 4:8afc50a3e4ac 2 #include "General.hpp"
Jonathan738 4:8afc50a3e4ac 3 #include "ros.h"
Jonathan738 4:8afc50a3e4ac 4 #include "rtos.h"
Jonathan738 4:8afc50a3e4ac 5 #include "ROS_Handler.hpp"
Jonathan738 4:8afc50a3e4ac 6 #include <motordriver.h>
Jonathan738 4:8afc50a3e4ac 7 #include "math.h"
Jonathan738 4:8afc50a3e4ac 8 #include "Battery_Monitor.hpp"
Jonathan738 4:8afc50a3e4ac 9 #include "Pins.h"
Jonathan738 0:3dfee562823a 10
Jonathan738 12:82b8fe254222 11 #include <std_msgs/Int32.h>
Jonathan738 12:82b8fe254222 12
Jonathan738 0:3dfee562823a 13 #ifndef Define_ONCE_Motors
Jonathan738 0:3dfee562823a 14 #define Define_ONCE_Motors
Jonathan738 0:3dfee562823a 15
Jonathan738 12:82b8fe254222 16 void Motor_Handler();
Jonathan738 0:3dfee562823a 17 void initialize();
Jonathan738 0:3dfee562823a 18 void move(const std_msgs::Int32& input);
Jonathan738 0:3dfee562823a 19 void rotate(const std_msgs::Int32& input);
Jonathan738 0:3dfee562823a 20 void tempMove(float distance);
Jonathan738 0:3dfee562823a 21 void tempRotate(float degrees);
Jonathan738 0:3dfee562823a 22 void driveMotors(void);
Jonathan738 0:3dfee562823a 23 void callbackA(void);
Jonathan738 0:3dfee562823a 24 void callbackB(void);
Jonathan738 0:3dfee562823a 25
Jonathan738 0:3dfee562823a 26 #endif