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.
Revision 10:1a2fe21bfdb2, committed 2017-09-27
- Comitter:
- fujikenac
- Date:
- Wed Sep 27 10:40:03 2017 +0000
- Parent:
- 9:a8b055438779
- Commit message:
- fix i2c
Changed in this revision
| mecanum2017.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mecanum2017.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/mecanum2017.cpp Fri Sep 22 02:26:06 2017 +0000
+++ b/mecanum2017.cpp Wed Sep 27 10:40:03 2017 +0000
@@ -2,7 +2,7 @@
#include "T_motor.h"
#include "mecanum2017.h"
-mecanum2017::mecanum2017(I2C& i2c_, float para[], char addr[], int phase) //paraはモーターの回転方向を±1で表すよ いつもは全部+1だよ
+mecanum2017::mecanum2017(I2C* i2c_, float para[], char addr[], int phase) //paraはモーターの回転方向を±1で表すよ いつもは全部+1だよ
: m1(i2c_, addr[0]), m2(i2c_, addr[1]), m3(i2c_, addr[2]), m4(i2c_, addr[3])
{
para1 = para[0];
--- a/mecanum2017.h Fri Sep 22 02:26:06 2017 +0000
+++ b/mecanum2017.h Wed Sep 27 10:40:03 2017 +0000
@@ -11,7 +11,7 @@
float para1, para2, para3, para4;
double alpha, beta, oldangle, sokudo;
public:
- mecanum2017(I2C& i2c_, float para[], char addr[], int phase); //paraはモーターの回転方向を±1で表すよ いつもは全部+1だよ
+ mecanum2017(I2C* i2c_, float para[], char addr[], int phase); //paraはモーターの回転方向を±1で表すよ いつもは全部+1だよ
/* うごけー */
void move(int xdate, int ydate); //xdate, ydateは -64 ~ +64