this code is completely restructured, but should do the same thing. did not want to directly commit, since it may not work at all. compiles though.

Dependencies:   AVEncoder mbed-src-AV

Fork of Test by 2015-2016_Mouserat

History

HUGE RESTRUCTURING OF THE CODE. default tip

2015-12-15, by jimmery [Tue, 15 Dec 2015 08:56:36 +0000] rev 13

HUGE RESTRUCTURING OF THE CODE.


gyro turn readded. more robust;

2015-12-05, by jimmery [Sat, 05 Dec 2015 00:26:26 +0000] rev 12

gyro turn readded. more robust;


updated

2015-12-04, by intgsull [Fri, 04 Dec 2015 22:53:53 +0000] rev 11

updated


changed code structure up a lot. (no need to account for systick other things, gave more clear definitions to mouse_state and turn_direction); removed i-controller because it created a large amount of drift.

2015-12-04, by jimmery [Fri, 04 Dec 2015 09:38:25 +0000] rev 10

changed code structure up a lot. (no need to account for systick other things, gave more clear definitions to mouse_state and turn_direction); removed i-controller because it created a large amount of drift.


kla;sdjfal;sdkfjal;skdjfasdf fixed integral controller (aka it sucked so i removed it) plus i restructured the code.;

2015-12-04, by jimmery [Fri, 04 Dec 2015 07:23:38 +0000] rev 9

kla;sdjfal;sdkfjal;skdjfasdf fixed integral controller (aka it sucked so i removed it) plus i restructured the code.;


Consolidated to one ticker, doesn't work as expected mouse is detecting walls but is doing a lot of left/right turns, it might be good to enumerate the right turn case instead of leaving it as an else statement without a TURN_STATE thing.

2015-12-04, by intgsull [Fri, 04 Dec 2015 04:21:55 +0000] rev 8

Consolidated to one ticker, doesn't work as expected mouse is detecting walls but is doing a lot of left/right turns, it might be good to enumerate the right turn case instead of leaving it as an else statement without a TURN_STATE thing.


ir changes;

2015-12-04, by jimmery [Fri, 04 Dec 2015 02:51:37 +0000] rev 7

ir changes;


Turning logic works (probably)

2015-12-03, by aduriseti [Thu, 03 Dec 2015 01:26:44 +0000] rev 6

Turning logic works (probably)


turning added - and logic for navigating from stopped mouse state;

2015-12-02, by aduriseti [Wed, 02 Dec 2015 01:53:48 +0000] rev 5

turning added - and logic for navigating from stopped mouse state;


added ir pid

2015-12-01, by intgsull [Tue, 01 Dec 2015 19:38:27 +0000] rev 4

added ir pid