コウスケ スズキ
/
PID3
amatouaa
Revision 2:c329b0c4ec92, committed 2022-02-23
- Comitter:
- kosukesuzuki
- Date:
- Wed Feb 23 12:53:39 2022 +0000
- Parent:
- 1:036305ced8fd
- Commit message:
- a
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 036305ced8fd -r c329b0c4ec92 main.cpp --- a/main.cpp Wed Feb 23 12:40:26 2022 +0000 +++ b/main.cpp Wed Feb 23 12:53:39 2022 +0000 @@ -109,13 +109,17 @@ //duty比からledを動かす。 if(GX > 0){ led1 = abs(d1); + led2 = -abs(d1); }else{ led2 = abs(d1); + led1 = -abs(d1); } if(GY > 0){ led3 = abs(d2); + led4 = -abs(d2); }else{ led4 = abs(d2); + led3 = -abs(d2); } } } \ No newline at end of file