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: src/callbackHeader.hpp
- Revision:
- 0:4ff8aeb3e4d1
- Child:
- 1:2594a70c1ddd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/callbackHeader.hpp Fri Apr 02 05:24:49 2021 +0000
@@ -0,0 +1,20 @@
+#ifndef ZETA_STM_KINETIC_CALLBACKHEADER_H_
+#define ZETA_STM_KINETIC_CALLBACKHEADER_H_
+#include "rosHeader.hpp"
+#include "mbed.h"
+#include "myUtil.hpp"
+
+extern zetabot_main::ModuleControlMsgs moduleControlMsg;
+extern volatile bool isSubscribe;
+extern volatile uint8_t NUC_sub_state;
+
+void ModuleControlCB(const zetabot_main::ModuleControlMsgs& msg) {
+ memcpy(moduleControlMsg.module_power,msg.module_power,sizeof(msg.module_power)/sizeof(bool));
+ moduleControlMsg.pulifier = msg.pulifier;
+ isSubscribe = true;
+}
+
+void BluetoothCB(const std_msgs::UInt8& msg) {
+ NUC_sub_state = msg.data;
+}
+#endif
\ No newline at end of file