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.
Dependencies: ikarashiMDC mbed
Fork of ikarashiMDCmaster by
Revision 0:3b9eb11e9b4b, committed 2017-08-10
- Comitter:
- WAT34
- Date:
- Thu Aug 10 07:17:20 2017 +0000
- Child:
- 1:f63faad28bb1
- Commit message:
- worked
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ikarashiMDC.lib Thu Aug 10 07:17:20 2017 +0000 @@ -0,0 +1,1 @@ +https://developer.mbed.org/teams/NHK-Robocon2016_Nagaoka_B_Team/code/ikarashiMDC/#5e8014a1adbd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Aug 10 07:17:20 2017 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+#include "ikarashiMDC.h"
+Serial serial(PC_10,PC_11);
+DigitalOut serialControl(D2);
+
+ikarashiMDC ikarashi;
+DigitalOut pwm(LED1);
+
+int main() {
+ serial.baud(115200);
+ serialControl =1;
+ float i = -1;
+ ikarashi.setMotorinfo(0,0,&serial);
+ while(1) {
+ //pwm = ikarashi.checkcomm();
+ ikarashi.setMotorSpeed(i);
+ i += 0.01;
+ wait_ms(20);
+ if(i >= 1) i = -1;
+
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Aug 10 07:17:20 2017 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/users/mbed_official/code/mbed/builds/a97add6d7e64 \ No newline at end of file
