Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / traffic_navigation / validTurns.c @ 1929

History | View | Annotate | Download (2.91 KB)

# Date Author Comment
1913 12/05/2010 09:56 PM Ben Wasserman

Demo now MOSTLY WORKS. Yay. It just has trouble making turns and for some reason (which may be hardware caused) switches into intersection mode without a button press. It also needs barcodes. In order to run the demo, turn it on, press button 1 to make it stop at an intersection, and when it exits an intersection, press button 1 to make it go into highway mode, or button 2 to make it go into road mode. Highway mode only sometimes works, but not often.

1912 12/05/2010 07:58 PM Priyanka Deo

Made compatibility of lineDrive.h and validTurns.h.

1905 12/02/2010 07:37 PM Priyanka Deo

Changed the randomNumGen so that it stopps reading IR and does stuff
with a seed. More random? Maybe.

1901 11/29/2010 08:49 PM Ben Wasserman

Updated main to work for the demo. It now switches states properly, but button1 seems to trigger accidentally sometimes (but strangely consistently at the same point in the program). Also edited the random turn generator to use the rtc instead of a rangefinder for the seed.

1896 11/29/2010 08:07 PM Ben Wasserman

Changed main and validTurns to get the test going. Should theoretically drive through the cloverleaf, switching between road and intersection mode, but has trouble following the line and keeps reading phantom barcodes.

1886 11/21/2010 10:09 PM Priyanka Deo

Tested and finished the database and the valid turns and everything!

database:
files: intersectData.c and intersectData.h
database is an array defined in .h that stores all intersections
right now it is defined for our demo map.
it has an intialize function that is unique for each map and all...

1885 11/21/2010 06:24 PM Priyanka Deo

Changed index of INTERSECTION variables and got rid of getCrossPos and
getCrossType that are being implemented in the database.

1884 11/19/2010 04:51 PM Jeff Cooper

Separated the intersection constants from the turning constants, updated fuctions accordingly.

1882 11/18/2010 09:58 PM Priyanka Deo

random character in one of those files...and the other needed a 7 instead of a 3...
=D

1881 11/18/2010 09:51 PM Priyanka Deo

Merged the types of doubles into the crossing type. Also fixed comments
that were never updated and implements things of type DOUBLE as DOUBLE_T's
if you dont specify because DOUBLE_T is more safe.

1879 11/18/2010 09:33 PM Priyanka Deo

tested validTurns.c and made it more compatible with the upcoming database.

1868 11/11/2010 09:12 PM Alexander Lam

GARS, source files aren't supposed to be executable. (now my ls output has the right colors!)

1867 11/11/2010 08:46 PM Jeff Cooper

fixed priya's bugs, left her questionable sytlistic choices

1866 11/11/2010 08:16 PM Priyanka Deo

see comments for validTurns.h

this is the actual code for the function validateTurn that takes a barcode
and returns an integer that corresponds to a valid turn.