Public Member Functions | Public Attributes
channelSetting Struct Reference

An object that represents the settings for one servo, e.g. the information in the Settings tab. One of these objects corresponds to one ServoSettingsControl. More...

#include <USBInterface.h>

List of all members.

Public Member Functions

 channelSetting ()

Public Attributes

uint8_t acceleration
 Acceleration: the max change in speed every 80 ms. 0 means no limit. Units depend on your settings. Range = 0-255. Increment = 1.
uint16_t home
 Home position: the place to go on startup. If type==servo, units are 0.25 us (qus). If type==output, the threshold between high and low is 1500.
HomeMode homeMode
 HomeType (off, ignore, goto).
uint16_t maximum
 Maximum (units of 0.25 us, but stored on the device in units of 16 us).
uint16_t minimum
 Minimum (units of 0.25 us, but stored on the device in units of 16 us).
ChannelMode mode
 Type (servo, output, input).
string name
 Name. The Usc class stores this in the registry, not the device.
uint16_t neutral
 Neutral: the center of the 8-bit set target command (value at 127). If type==servo, units are 0.25 us (qus). If type==output, the threshold between high and low is 1500.
uint16_t range
 Range: the +/- extent of the 8-bit command. 8-bit(254) = neutral + range, 8-bit(0) = neutral - range If type==servo units are 0.25 us (qus) (but stored on device in units of 127*0.25us = 31.75 us. Range = 0-127*255 = 0-32385 qus. Increment = 127 qus.
uint16_t speed
 Speed: the maximum change in position (qus) per update. 0 means no limit. Units depend on your settings. Stored on device in this format: [0-31]*2^[0-7] Range = 0-31*2^7 = 0-3968. Increment = 1.

Detailed Description

An object that represents the settings for one servo, e.g. the information in the Settings tab. One of these objects corresponds to one ServoSettingsControl.

Definition at line 132 of file USBInterface.h.


Constructor & Destructor Documentation

Definition at line 134 of file USBInterface.h.


Member Data Documentation

Acceleration: the max change in speed every 80 ms. 0 means no limit. Units depend on your settings. Range = 0-255. Increment = 1.

Definition at line 220 of file USBInterface.h.

Home position: the place to go on startup. If type==servo, units are 0.25 us (qus). If type==output, the threshold between high and low is 1500.

This value is only saved on the device if homeType == Goto.

Definition at line 171 of file USBInterface.h.

HomeType (off, ignore, goto).

Definition at line 162 of file USBInterface.h.

Maximum (units of 0.25 us, but stored on the device in units of 16 us).

Definition at line 181 of file USBInterface.h.

Minimum (units of 0.25 us, but stored on the device in units of 16 us).

Definition at line 176 of file USBInterface.h.

Type (servo, output, input).

Definition at line 157 of file USBInterface.h.

Name. The Usc class stores this in the registry, not the device.

Definition at line 152 of file USBInterface.h.

Neutral: the center of the 8-bit set target command (value at 127). If type==servo, units are 0.25 us (qus). If type==output, the threshold between high and low is 1500.

Definition at line 188 of file USBInterface.h.

Range: the +/- extent of the 8-bit command. 8-bit(254) = neutral + range, 8-bit(0) = neutral - range If type==servo units are 0.25 us (qus) (but stored on device in units of 127*0.25us = 31.75 us. Range = 0-127*255 = 0-32385 qus. Increment = 127 qus.

Definition at line 199 of file USBInterface.h.

Speed: the maximum change in position (qus) per update. 0 means no limit. Units depend on your settings. Stored on device in this format: [0-31]*2^[0-7] Range = 0-31*2^7 = 0-3968. Increment = 1.

Note that the *current speed* is stored on the device in units of qus, and so it is not subject to the restrictions above! It can be any value 0-65535.

Definition at line 212 of file USBInterface.h.


The documentation for this struct was generated from the following file:


kurt3d
Author(s): Thomas Wiemann, Benjamin Kisliuk, Alexander Mock
autogenerated on Wed Sep 16 2015 10:24:29