semin ahn / Mbed OS zeta_stm_kinetic

Dependencies:   BufferedSerial

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers UVC.cpp Source File

UVC.cpp

00001 #include "UVC.hpp"
00002 
00003 void UVC::Init() {
00004     InitUVC();
00005 }
00006 
00007 void UVC::InitUVC() {
00008     uvc_p = _Off;
00009     uvc_n = _Off;
00010 }
00011 
00012 
00013 void UVC::control() {
00014     ControlUVC();
00015 }
00016 
00017 void UVC::ControlUVC() {
00018     if(msg->data)
00019     {
00020         uvc_p = _On;
00021         uvc_n = _On;
00022     
00023     }
00024     else
00025     {
00026         uvc_p = _Off;
00027         uvc_n = _Off;
00028     }
00029 }
00030 
00031 
00032 
00033 void UVC::setMsg(std_msgs::Bool* msg) {
00034     this -> msg = msg;
00035 }
00036 
00037 // MODULE.cpp