Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: AX12/AX12.h
- Revision:
- 1:2759fc78aa04
- Parent:
- 0:23b97841e8dc
diff -r 23b97841e8dc -r 2759fc78aa04 AX12/AX12.h
--- a/AX12/AX12.h Wed Aug 29 09:45:32 2018 +0000
+++ b/AX12/AX12.h Fri Aug 31 10:45:30 2018 +0000
@@ -36,6 +36,7 @@
#define AX12_REG_TEMP 0x2B
#define AX12_REG_MOVING 0x2E
#define AX12_REG_POSITION 0x24
+#define AX12_TORQUE_ENABLE 0x18
#define AX12_MODE_POSITION 0
#define AX12_MODE_ROTATION 1
@@ -207,6 +208,10 @@
* @returns float voltage
*/
float GetVolts(void);
+
+ /** Set torque enable of the servo
+ */
+ void SetTorqueEnable(char val);
int read(int ID, int start, int length, char* data);