Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / libdragonfly / encoders.c @ 1925

History | View | Annotate | Download (8.44 KB)

# Date Author Comment
1496 11/07/2009 07:17 PM John Sexton

Reverted "libdragonfly" folder back to version before Init Checking was implemented and did "make dist" to recompile the library. BOM LEDs now shine
correctly.

1462 10/23/2009 11:20 PM David Schultz

moved dragonfly definitions to separate header file

1461 10/22/2009 11:01 PM Brad Neuman

updated all the library code to have sensible _init behavior.
Almost all of the library components have a global variable which gets set after init and the functions inside will fail with an error code if init has not been called. Also, the init functions themselves check this variable and will bail out without doing any damage if that init has already been called

1452 10/14/2009 08:30 PM David Schultz

update of includes in library, removed unnecessary calls to stdlib.h

1418 09/18/2009 08:38 PM Rich Hong

Added encoder_get_x and encoder_get_v.

use get_v at your own risk
If encoder_read returns -1, this usually means battery is low.
If encoder_read returns a value greater than ENCODER_MAX, this usually means there are physical problems with the encoder.

1371 09/02/2009 11:37 PM Rich Hong

Remove some unused code in encoders

Also update binary and docs

890 10/28/2008 07:08 PM Justin Scheiner

Changed some odometry stuff. Interrupt is called now.
Still some problem that is not updating x and y data.

870 10/06/2008 03:49 PM Justin Scheiner

Reversed the left wheel. Encoders increment when the robot is moved forward.

868 10/06/2008 03:36 PM Justin Scheiner

Added spi and encoders to the trunk. Tested and worked.
Encoders still read out directions backwards - i.e. there isn't a defined 'direction' for
the encoders to go with the wheels yet. I'll fix this about now.