CrazyflieUSB.h
Go to the documentation of this file.
00001 #pragma once
00002 
00003 #include <stdint.h>
00004 #include <vector>
00005 #include <string>
00006 
00007 #include "ITransport.h"
00008 #include "USBDevice.h"
00009 
00010 class CrazyflieUSB
00011   : public ITransport
00012   , public USBDevice
00013 {
00014 public:
00015   CrazyflieUSB(
00016       uint32_t devid);
00017 
00018   ~CrazyflieUSB();
00019 
00020   static uint32_t numDevices();
00021 
00022   std::string serial();
00023 
00024   float version() const;
00025 
00026   virtual void sendPacket(
00027     const uint8_t* data,
00028     uint32_t length,
00029     ITransport::Ack& result);
00030 
00031   virtual void sendPacketNoAck(
00032     const uint8_t* data,
00033     uint32_t length);
00034 
00035 private:
00036   void setCrtpToUsb(bool crtpToUsb);
00037 
00038 };


crazyflie_cpp
Author(s): Wolfgang Hoenig
autogenerated on Sun Oct 8 2017 02:47:59