with the tof code
Dependencies: mbed Servo ros_lib_kinetic
Diff: main.cpp
- Revision:
- 6:2cc2aac35868
- Parent:
- 5:bc5081f0c063
- Child:
- 7:8248af58df5a
diff -r bc5081f0c063 -r 2cc2aac35868 main.cpp --- a/main.cpp Tue Nov 12 10:36:59 2019 +0000 +++ b/main.cpp Tue Nov 12 12:56:02 2019 +0000 @@ -6,6 +6,7 @@ #include "TOF.h" #include "Motor.h" #include "power.h" +#include "Buzzer.h" #include "LED.h" Serial pc(SERIAL_TX, SERIAL_RX, 9600); // set-up serial to pc @@ -19,7 +20,6 @@ //Class define cAdafruit_VL6180X VL6180X(TOF1,TOF4,TOF6,TOF7); //Define TOF sensor class and initialise devices cPower cPower(VBATT, V5, V3); -cRBG_LED cRBG_LED(DIAG_RED, DIAG_BLU, DIAG_GRN); int main() { @@ -43,8 +43,6 @@ power_levels[1] = cPower.monitor_5v_line(); power_levels[2] = cPower.monitor_3v3_line(); printf("BATT:%4.2f, 5V:%4.2f, 3v3:%4.2f\n\r", power_levels[0], power_levels[1], power_levels[2]); - - cRBG_LED.yellow_led(); } } \ No newline at end of file