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: Module/UVC.hpp
- Revision:
- 1:2594a70c1ddd
- Child:
- 2:0de4854743f7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Module/UVC.hpp Wed May 26 05:26:16 2021 +0000
@@ -0,0 +1,37 @@
+#ifndef ZETA_STM_KINETIC_UVC_H_
+#define ZETA_STM_KINETIC_UVC_H_
+
+#include "std_msgs/Bool.h"
+#include "pinConfig.h"
+#include "ros.h"
+extern ros::NodeHandle nh;
+
+// this class control 4 modules
+class UVC {
+ private:
+ std_msgs::Bool* msg;
+
+ //const variables
+ const int _On = 1;
+ const int _Off = 0;
+ const bool _Run = true;
+ const bool _Stop = false;
+
+ DigitalOut uvc_p;
+ DigitalOut uvc_n;
+
+ public:
+ UVC(PinName uvc_pin_p, PinName uvc_pin_n):
+ uvc_p(uvc_pin_p,_Off),uvc_n(uvc_pin_n,_Off)
+ {
+ Init();
+ }
+ void InitUVC();
+ void Init();
+ void ControlUVC();
+ void setMsg(std_msgs::Bool* msg);
+ void control();
+};
+
+#endif
+// EOF
\ No newline at end of file