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>
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. |
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.
channelSetting::channelSetting | ( | ) | [inline] |
Definition at line 134 of file USBInterface.h.
uint8_t channelSetting::acceleration |
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.
uint16_t channelSetting::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.
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.
uint16_t channelSetting::maximum |
Maximum (units of 0.25 us, but stored on the device in units of 16 us).
Definition at line 181 of file USBInterface.h.
uint16_t channelSetting::minimum |
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.
string channelSetting::name |
Name. The Usc class stores this in the registry, not the device.
Definition at line 152 of file USBInterface.h.
uint16_t channelSetting::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.
Definition at line 188 of file USBInterface.h.
uint16_t channelSetting::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.
Definition at line 199 of file USBInterface.h.
uint16_t channelSetting::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.
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.