with the tof code
Dependencies: mbed Servo ros_lib_kinetic
Diff: Motors/Motor.h
- Revision:
- 8:262c6c40bff9
- Parent:
- 7:8248af58df5a
- Child:
- 9:326b8f261ef0
diff -r 8248af58df5a -r 262c6c40bff9 Motors/Motor.h --- a/Motors/Motor.h Tue Nov 19 12:55:44 2019 +0000 +++ b/Motors/Motor.h Tue Dec 10 11:52:53 2019 +0000 @@ -7,7 +7,8 @@ #include "mbed.h" #include "Buzzer.h" - +#include <ros.h> +#include <std_msgs/UInt8.h> /*-------------------------------------------------------------------------------- ---------------------------------DEFINES------------------------------------------ @@ -52,6 +53,7 @@ --------------------------------------------------------------------------------*/ void Check_for_obstacles(uint8_t TOFRange[4]); //Obstacle avoidance functionality void update_power_levels(float vBatt); //Sends power level to the LED class for further processing +void keySub(const std_msgs::UInt8 &keyPress); /*-------------------------------------------------------------------------------- --------------------------------External Variables-------------------------------- --------------------------------------------------------------------------------*/