![]() |
TCode Library
A library to aid in decoding/using of Toy Code ("T-Code") data.
|
Class used to represent a TCode Axis. More...
#include <TCodeAxis.h>
Public Member Functions | |
| TCodeAxis (const char *name, TCode_ChannelID channel) | |
| constructor for the TCodeAxis class | |
| void | set (int targetValue, TCode_Axis_Extention_Type extentionType=TCode_Axis_Extention_Type::Time, long extentionValue=0, TCode_Axis_Ramp_Type rampType=TCode_Axis_Ramp_Type::Linear) |
| sets the axis' dynamic parameters | |
| int | getPosition () |
| gets the current position of the axis | |
| void | stop () |
| stops axis movement at its current position | |
| bool | changed () |
| stops axis movement at its current position | |
| const char * | getName () |
| gets the name of the axis | |
| TCode_ChannelID | getChannelID () |
| gets channel ID of the axis | |
Class used to represent a TCode Axis.
Definition at line 41 of file TCodeAxis.h.
| TCodeAxis::TCodeAxis | ( | const char * | name, |
| TCode_ChannelID | channel | ||
| ) |
constructor for the TCodeAxis class
| name | constant char string name for the axis |
| channel | channel ID for this axis |
Definition at line 6 of file TCodeAxis.cpp.
| bool TCodeAxis::changed | ( | ) |
stops axis movement at its current position
Definition at line 191 of file TCodeAxis.cpp.
| TCode_ChannelID TCodeAxis::getChannelID | ( | ) |
gets channel ID of the axis
Definition at line 206 of file TCodeAxis.cpp.
| const char * TCodeAxis::getName | ( | ) |
gets the name of the axis
Definition at line 201 of file TCodeAxis.cpp.
| int TCodeAxis::getPosition | ( | ) |
gets the current position of the axis
Definition at line 106 of file TCodeAxis.cpp.
| void TCodeAxis::set | ( | int | targetValue, |
| TCode_Axis_Extention_Type | extentionType = TCode_Axis_Extention_Type::Time, |
||
| long | extentionValue = 0, |
||
| TCode_Axis_Ramp_Type | rampType = TCode_Axis_Ramp_Type::Linear |
||
| ) |
sets the axis' dynamic parameters
| target_value | the target value for this axis |
| extentionType | the extention type for the axis e.g. Time,Speed |
| extentionValue | the extention value |
| rampType | the ramp type |
Definition at line 47 of file TCodeAxis.cpp.
| void TCodeAxis::stop | ( | ) |
stops axis movement at its current position
Definition at line 174 of file TCodeAxis.cpp.