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.
Fork of AX12 by
Diff: AX12.cpp
- Revision:
- 3:ced71d1b2558
- Parent:
- 2:5ea99c37a2d7
- Child:
- 4:a7c95f3012db
--- a/AX12.cpp Sun Apr 10 20:58:21 2011 +0000
+++ b/AX12.cpp Sun Apr 10 21:20:44 2011 +0000
@@ -159,6 +159,21 @@
}
+int AX12::SetBaud (int baud) {
+
+ char data[1];
+ data[0] = baud;
+
+#ifdef AX12_DEBUG
+ printf("Setting Baud rate to %d\n",baud);
+#endif
+
+ return (write(0xFE, AX12_REG_BAUD, 1, data));
+
+}
+
+
+
// return 1 is the servo is still in flight
int AX12::isMoving(void) {
