Provides an interface to an AX-12A servo. Requires the Dynamixel bus protocol library/
Fork of AX-12A by
Diff: AX12.cpp
- Revision:
- 8:b6979be5a0a7
- Parent:
- 7:155ecc801119
- Child:
- 9:705f671a7498
--- a/AX12.cpp Thu Dec 31 17:47:43 2015 +0000 +++ b/AX12.cpp Thu Dec 31 20:02:50 2015 +0000 @@ -12,7 +12,7 @@ _LastPosition= 0.0f; _LastTemperature = 0; _LastVoltage = 0; - _LastError = 0; + _LastError = statusValid; _LastLoad = 0; } @@ -295,3 +295,8 @@ return (int)_LastError; } +bool AX12::HasError() +{ + return _LastError != statusValid; +} +