Mouse code for the MacroRat

Dependencies:   ITG3200 QEI

Revisions of main.cpp

Revision Date Message Actions
46:b156ef445742 21 months ago Final code for internal battlebot competition. File  Diff  Annotate
45:8b0bee6baf38 21 months ago Final CAMM AAMC Working Code File  Diff  Annotate
44:85bf2c0cd518 21 months ago rngesus File  Diff  Annotate
43:f22168a05c3e 22 months ago Changed some values around File  Diff  Annotate
42:75257e6c4c76 22 months ago Deaccel on encoder move forward File  Diff  Annotate
41:56a34315dd75 22 months ago fixed floodfill File  Diff  Annotate
40:465d2b565977 22 months ago RIP Harambe File  Diff  Annotate
39:058fb32c24e0 22 months ago calibration n shit File  Diff  Annotate
38:fe05f93009a2 22 months ago Playing around with constants File  Diff  Annotate
37:3dcc95e9321c 22 months ago Need to get centered more before turns (so after moving forward). Also fix when both walls are missing! File  Diff  Annotate
36:9c4cc9944b69 22 months ago Fixed Right turn, left turn inconsistent File  Diff  Annotate
35:a5bd9ef82210 22 months ago 4th Dip switch down to move File  Diff  Annotate
34:69342782fb68 22 months ago Added small reverse turns before the break so that we can stop faster. File  Diff  Annotate
33:68ce1f74ab5f 22 months ago PID working with the new IRs now ... need to tune it a bit though. File  Diff  Annotate
32:69acb14778ea 22 months ago PID values still wonky. IR PID vs Encoder PID also wonky File  Diff  Annotate
31:9b71b44e0867 22 months ago newly modified floodfill, need to get PID with new values now! File  Diff  Annotate
29:ec2c5a69acd6 22 months ago Need to change ir2-ir3 to now be ir1 - ir4 File  Diff  Annotate
28:8126a4d620e8 22 months ago Final commit before CAMM ... it is not looking so good with floodfill and detecting empty spots in the maze File  Diff  Annotate
27:02ce1040f331 22 months ago Modifying floodfill File  Diff  Annotate
26:d20f1adac2d3 22 months ago Added floodfill to the code ... need to tune it now to get the wall array properly fixed!; File  Diff  Annotate
25:f827a8b7880e 22 months ago 180 in the beginning File  Diff  Annotate
24:e7063765d6f0 22 months ago front face start File  Diff  Annotate
23:690b0ca34ee9 22 months ago ncellencoderirwall function working for all walls (both, 1 side, no sides) need to tune detecting the sides though, there's a very precise threshold that we need to find File  Diff  Annotate
22:681190ff98f0 22 months ago updated nCellEncoderandIR function File  Diff  Annotate
21:9a6cb07bdcb6 22 months ago better PID constants for forwardWallIR and added no wall encoder pid moveForwardEncoder() function that is used in forwardWallIR() File  Diff  Annotate
20:82836745332e 22 months ago added some init code to keep track of walls as moving. Turning works now (avg/4 gives good values so long as we are in the center)!; Also maybe we should start off facing back, and then turn 180 to get better average readings? File  Diff  Annotate
19:7b66a518b6f8 22 months ago Got the PID to work on both encoder and IR at the same time ... BUT i still cannot get it to recognize it to turn the right direction. File  Diff  Annotate
18:6a4db94011d3 22 months ago Publishing again File  Diff  Annotate
17:f713758f6238 22 months ago Added mbed-dev and still working on dynamically deciding to turn; File  Diff  Annotate
16:d9252437bd92 22 months ago Moves forward exactly one cell now!; File  Diff  Annotate
15:b80555a4a8b9 22 months ago Created PID for encoder based on difference of speed rotations. File  Diff  Annotate
14:9e7bb03ddccb 22 months ago Turns work, but one cell count with encoder does not File  Diff  Annotate
13:2032db00f168 22 months ago turning sort of works File  Diff  Annotate
12:5790e56a056f 22 months ago Right Turn is wrong, need fix File  Diff  Annotate
11:8fc2b703086b 22 months ago Counting cells somewhat properly now File  Diff  Annotate
10:810d1849da9d 22 months ago Added interrupts for dip switch.; Added stm324xxx.h header; Began configuration for Tim2 and Tim5 File  Diff  Annotate
9:1d8e4da058cd 22 months ago IR PID is now implemented File  Diff  Annotate
8:a0760acdc59e 22 months ago Created Motor class File  Diff  Annotate
7:6f5cb6377bd4 22 months ago Added some stuff for motor + encoders File  Diff  Annotate
6:3d68fedd6fd9 22 months ago Fixed stuff File  Diff  Annotate
4:b5b7836ca2b0 23 months ago Added Modularity, Motors File  Diff  Annotate
3:880f15be8c72 23 months ago added some gyro stuff File  Diff  Annotate
2:771db996cee0 23 months ago changed the library File  Diff  Annotate
1:8a4b2f573923 23 months ago Some working code; File  Diff  Annotate
0:a03c771ab78e 23 months ago init MacroRat File  Diff  Annotate