History | View | Annotate | Download (6.77 KB)
control law for speed starting to work.WARNING: can't use delay_ms with encoders_init
fixed lost of bugs in the libraries for spi and encoder
added another function pointer to encoders which gets called after all bytes are recv'd.working on a behavior to drive in a straight line, but encoders are giving invalid on robot 5
encoder: added data array buffer and accumulators
Fixed a bug in encoders.
asdf
Wrote encoders.c and encoders.h Would GREATLY appreciate it if someone could check if I got the receive function correct. There was a lot of bit twiddling. Useful functions still need to be written, however receiving raw encoder readings should work (not tested... so don't bet on it)
Modified the spi module a bit. Didn't test it but this might be better. Need to talk to Ben about it.
Started the encoders file. Nothing in there because I don't have a stable SPI interface to work with yet.