Functions for accessing and modifying output module features. More...
Defines | |
#define | ResetTachoCount(_p) __resetTachoCount(_p) |
Reset tachometer counter. | |
#define | ResetBlockTachoCount(_p) __resetBlockTachoCount(_p) |
Reset block-relative counter. | |
#define | ResetRotationCount(_p) __resetRotationCount(_p) |
Reset program-relative counter. | |
#define | ResetAllTachoCounts(_p) __resetAllTachoCounts(_p) |
Reset all tachometer counters. | |
#define | OnFwdEx(_ports, _pwr, _reset) __OnFwdEx(_ports, _pwr, _reset) |
Run motors forward and reset counters. | |
#define | OnRevEx(_ports, _pwr, _reset) __OnRevEx(_ports, _pwr, _reset) |
Run motors backward and reset counters. | |
#define | OnFwdExPID(_ports, _pwr, _reset, _p, _i, _d) __OnFwdExPID(_ports, _pwr, _reset, _p, _i, _d) |
Run motors forward and reset counters. | |
#define | OnRevExPID(_ports, _pwr, _reset, _p, _i, _d) __OnRevExPID(_ports, _pwr, _reset, _p, _i, _d) |
Run motors backward and reset counters. | |
#define | OnFwd(_ports, _pwr) OnFwdEx(_ports, _pwr, RESET_BLOCKANDTACHO) |
Run motors forward. | |
#define | OnRev(_ports, _pwr) OnRevEx(_ports, _pwr, RESET_BLOCKANDTACHO) |
Run motors backward. | |
#define | CoastEx(_ports, _reset) __CoastEx(_ports, _reset) |
Coast motors and reset counters. | |
#define | OffEx(_ports, _reset) __OffEx(_ports, _reset) |
Turn motors off and reset counters. | |
#define | Coast(_ports) CoastEx(_ports, RESET_BLOCKANDTACHO) |
Coast motors. | |
#define | Off(_ports) OffEx(_ports, RESET_BLOCKANDTACHO) |
Turn motors off. | |
#define | Float(_ports) Coast(_ports) |
Float motors. | |
#define | OnFwdRegEx(_ports, _pwr, _regmode, _reset) __OnFwdRegEx(_ports, _pwr, _regmode, _reset) |
Run motors forward regulated and reset counters. | |
#define | OnRevRegEx(_ports, _pwr, _regmode, _reset) __OnRevRegEx(_ports, _pwr, _regmode, _reset) |
Run motors backward regulated and reset counters. | |
#define | OnFwdRegExPID(_ports, _pwr, _regmode, _reset, _p, _i, _d) __OnFwdRegExPID(_ports, _pwr, _regmode, _reset, _p, _i, _d) |
Run motors forward regulated and reset counters with PID factors. | |
#define | OnRevRegExPID(_ports, _pwr, _regmode, _reset, _p, _i, _d) __OnRevRegExPID(_ports, _pwr, _regmode, _reset, _p, _i, _d) |
Run motors backward regulated and reset counters with PID factors. | |
#define | OnFwdReg(_ports, _pwr, _regmode) OnFwdRegEx(_ports, _pwr, _regmode, RESET_BLOCKANDTACHO) |
Run motors forward regulated. | |
#define | OnRevReg(_ports, _pwr, _regmode) OnRevRegEx(_ports, _pwr, _regmode, RESET_BLOCKANDTACHO) |
Run motors forward regulated. | |
#define | OnFwdRegPID(_ports, _pwr, _regmode, _p, _i, _d) OnFwdRegExPID(_ports, _pwr, _regmode, RESET_BLOCKANDTACHO, _p, _i, _d) |
Run motors forward regulated with PID factors. | |
#define | OnRevRegPID(_ports, _pwr, _regmode, _p, _i, _d) OnRevRegExPID(_ports, _pwr, _regmode, RESET_BLOCKANDTACHO, _p, _i, _d) |
Run motors reverse regulated with PID factors. | |
#define | OnFwdSyncEx(_ports, _pwr, _turnpct, _reset) __OnFwdSyncEx(_ports, _pwr, _turnpct, _reset) |
Run motors forward synchronised and reset counters. | |
#define | OnRevSyncEx(_ports, _pwr, _turnpct, _reset) __OnRevSyncEx(_ports, _pwr, _turnpct, _reset) |
Run motors backward synchronised and reset counters. | |
#define | OnFwdSyncExPID(_ports, _pwr, _turnpct, _reset, _p, _i, _d) __OnFwdSyncExPID(_ports, _pwr, _turnpct, _reset, _p, _i, _d) |
Run motors forward synchronised and reset counters with PID factors. | |
#define | OnRevSyncExPID(_ports, _pwr, _turnpct, _reset, _p, _i, _d) __OnRevSyncExPID(_ports, _pwr, _turnpct, _reset, _p, _i, _d) |
Run motors backward synchronised and reset counters with PID factors. | |
#define | OnFwdSync(_ports, _pwr, _turnpct) OnFwdSyncEx(_ports, _pwr, _turnpct, RESET_BLOCKANDTACHO) |
Run motors forward synchronised. | |
#define | OnRevSync(_ports, _pwr, _turnpct) OnRevSyncEx(_ports, _pwr, _turnpct, RESET_BLOCKANDTACHO) |
Run motors backward synchronised. | |
#define | OnFwdSyncPID(_ports, _pwr, _turnpct, _p, _i, _d) OnFwdSyncExPID(_ports, _pwr, _turnpct, RESET_BLOCKANDTACHO, _p, _i, _d) |
Run motors forward synchronised with PID factors. | |
#define | OnRevSyncPID(_ports, _pwr, _turnpct, _p, _i, _d) OnRevSyncExPID(_ports, _pwr, _turnpct, RESET_BLOCKANDTACHO, _p, _i, _d) |
Run motors backward synchronised with PID factors. | |
#define | RotateMotorExPID(_ports, _pwr, _angle, _turnpct, _bSync, _bStop, _p, _i, _d) __RotateMotorExPID(_ports, _pwr, _angle, _turnpct, _bSync, _bStop, _p, _i, _d) |
Rotate motor. | |
#define | RotateMotorPID(_ports, _pwr, _angle, _p, _i, _d) __RotateMotorExPID(_ports, _pwr, _angle, 0, FALSE, TRUE, _p, _i, _d) |
Rotate motor with PID factors. | |
#define | RotateMotorEx(_ports, _pwr, _angle, _turnpct, _bSync, _bStop) __RotateMotorExPID(_ports, _pwr, _angle, _turnpct, _bSync, _bStop, PID_1, PID_0, PID_3) |
Rotate motor. | |
#define | RotateMotor(_ports, _pwr, _angle) __RotateMotorExPID(_ports, _pwr, _angle, 0, FALSE, TRUE, PID_1, PID_0, PID_3) |
Rotate motor. | |
#define | SetOutPwnFreq(_n) __setOutPwnFreq(_n) |
Set motor regulation frequency. | |
#define | GetOutPwnFreq(_n) __GetOutPwnFreq(_n) |
Get motor regulation frequency. | |
#define | SetOutRegulationTime(_n) __setOutRegulationTime(_n) |
Set motor regulation time. | |
#define | GetOutRegulationTime(_n) __GetOutRegulationTime(_n) |
Get motor regulation time. | |
#define | SetOutRegulationOptions(_n) __setOutRegulationOptions(_n) |
Set motor regulation options. | |
#define | GetOutRegulationOptions(_n) __GetOutRegulationOptions(_n) |
Get motor regulation options. |
Functions for accessing and modifying output module features.