Rhino Reimburse / Mbed 2 deprecated XL320_Test

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
mfajaradityo
Date:
Thu Feb 25 04:28:14 2016 +0000
Parent:
2:0ec2dce7c5f8
Commit message:
Now works in 1000000 BaudRate :)

Changed in this revision

XL320_MFA/XL320_MFA.cpp Show annotated file Show diff for this revision Revisions of this file
XL320_MFA/XL320_MFA.h Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/XL320_MFA/XL320_MFA.cpp	Thu Feb 25 04:19:15 2016 +0000
+++ b/XL320_MFA/XL320_MFA.cpp	Thu Feb 25 04:28:14 2016 +0000
@@ -1276,7 +1276,7 @@
 							case 0x02:
 								pc.printf("BaudRate : 115200\n\r");
 								break;
-							case 0x04:
+							case 0x03:
 								pc.printf("BaudRate : 1000000\n\r");
 								break;
 							default:
--- a/XL320_MFA/XL320_MFA.h	Thu Feb 25 04:19:15 2016 +0000
+++ b/XL320_MFA/XL320_MFA.h	Thu Feb 25 04:28:14 2016 +0000
@@ -8,7 +8,7 @@
 
 static Serial pc(USBTX,USBRX);
 ////////// DEBUG ///////////
-#define DATA_DEBUG				//Command this line to disable some of pc.printf in XL320_MFA.cpp
+//#define DATA_DEBUG				//Command this line to disable some of pc.printf in XL320_MFA.cpp
 
 ////////// SHIFT BYTES ///////////
 #define SHIFT_TO_LSB(w)			(uint8_t((uint16_t(w)) & 0x00ff))
--- a/main.cpp	Thu Feb 25 04:19:15 2016 +0000
+++ b/main.cpp	Thu Feb 25 04:28:14 2016 +0000
@@ -1,7 +1,7 @@
 //#include "mbed.h"
 #include "XL320_MFA.h"
 
-XL320 servoTest(115200, p9, p10, p8);
+XL320 servoTest(1000000, p9, p10, p8);
 
 uint8_t value = 100;