Mouse code for the MacroRat

Dependencies:   ITG3200 QEI


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