hisyam fs
/
Test_servo
Ngetes
Diff: AX12/AX12.cpp
- Revision:
- 1:2759fc78aa04
- Parent:
- 0:23b97841e8dc
- Child:
- 2:f07401343541
--- a/AX12/AX12.cpp Wed Aug 29 09:45:32 2018 +0000 +++ b/AX12/AX12.cpp Fri Aug 31 10:45:30 2018 +0000 @@ -625,3 +625,9 @@ return(Status[4]); // return error code } + +void AX12::SetTorqueEnable(char val) { + // write(int ID, int start, int length, char* data, int flag=0); + char en = val; + write(_ID, AX12_TORQUE_ENABLE, 1, &en, 0); +}