Categories

Products
Software
Example Projects
Tutorials
Forums
International Ordering
Services
Contact
Mailing List
User Projects

Stay current ! Subscribe to the RSS feed.

 

 

C++ Controller Class Reference
Beta

Used to creates a connection to the device and send new channel values.


Download

controller.cpp
controller.h


Usage

#include "controller.h"


Public attributes

bool connected
Flag indicating connection status, true = connected


Public member functions

bool send(int channel1,int channel2,int channel3,int channel4,int channel5,int channel6,int channel7,int channel8, int channel9)
Sends a new set channel values.

bool connect()
Connect to the PCTx or servo controller


Private attributes

HANDLE DeviceHandle
Device id

HIDP_CAPS Capabilities
HID capabilities report

BOOL result
Flag indicating a successful send, true = success

CHAR InputReport[10]
Array holding input data to the PCTx or servo controller

DWORD BytesWritten
Number of bytes sent from the interface

DWORD BytesRead
Number of bytes read into the interface


Links










Tower Hobbies Home Page



© 2008, Endurance R/C