Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 1:2594a70c1ddd
- Parent:
- 0:4ff8aeb3e4d1
- Child:
- 2:0de4854743f7
--- a/main.cpp Fri Apr 02 05:24:49 2021 +0000
+++ b/main.cpp Wed May 26 05:26:16 2021 +0000
@@ -5,7 +5,6 @@
* 20201024 Thread example :
* got from https://os.mbed.com/docs/mbed-os/v6.3/apis/thread.html
*/
-#define NO_ROS 0
#include "mbedHeader.hpp"
#include "robotConfig.h"
#include "rosHeader.hpp"
@@ -24,13 +23,13 @@
/* Instancs begin ----------------------------------------------------------- */
-#if (NO_ROS)
+#ifdef NO_ROS
mbed::Serial pc(USBTX, USBRX);
#else
ros::NodeHandle nh;
#endif
//MODULE module(BOOSTPUMP_PIN, SOLENOID_PIN, PURIFIER_PWM_PIN, PURIFIER_BR_PIN, UVC_PIN);
-MODULE module(PURIFIER_PWM_PIN, PURIFIER_BR_PIN, UVC_PIN);
+//UVC uvc(UVC_P, UVC_N);
Serial bt(BT_TX,BT_RX);
#define CALIBRATION_MODE 1
/* Instancs end ------------------------------------------------------------- */
@@ -42,7 +41,7 @@
#else
initROS();
#endif
- //initBT();
+ initBT();
initThread();
while(1) {;}
#if (NO_ROS)