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.
src/callbackHeader.hpp
- Committer:
- _seminahn
- Date:
- 2021-04-02
- Revision:
- 0:4ff8aeb3e4d1
- Child:
- 1:2594a70c1ddd
File content as of revision 0:4ff8aeb3e4d1:
#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