Added get_ir_offset to eeprom and changed program_eeprom.c so that it can read and modify them.
Fixing tools to Make correctly in Trunk. Reorganizing ir_branch to Make correctly.
Updated IR rangefinder lookup table. Now reports in millimeters with an accuracy of +-10mm.
Merged new BOM vector functions into the trunk and did a "make dist" to recompile the library. Also brought over C file used to test new BOM function behavior.
Merged new function to print BOM intensity histogram into the trunk.
Reverted "libdragonfly" folder back to version before Init Checking was implemented and did "make dist" to recompile the library. BOM LEDs now shine correctly.
moved dragonfly definitions to separate header file
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
put lcd and rangefinder lookup tables into program spaceremoved TODO inline comments from wireless library
update of includes in library, removed unnecessary calls to stdlib.h
Bug fix with new BOM code
1. Alpha code to trigger the new wireless bootloader from the user program. Not tested Includes subroutine in the XBee library to reset the XBee's settings
2. New subroutine in the BOM library to more accurately estimate the position of the max reading using weighted average of the readings instead of max reading....
encoders.h is not included in dragonfly_lib.h and encoders_init() is called within dragonfly_init().
Includes working naive version of Target Practice
Added encoder_get_x and encoder_get_v.
use get_v at your own riskIf 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.
fixed doxygen to call bom refresh
motor 1 and motor 2 changed to motor L and motor R
Changed BOM threshold to 120, seems to be helping for some robot and causing problems for othershunter-prey is done except the hunting part
Merged analog and bom changes from analog branch. Tested and working. Fixes #560
Fixed some Doxygen issues. Docs still need to be compiled, though
Minor documentation improvements
Turned on source browsing. This might fix our problems.
Updated and removed deprecated doxygen stuff from the doxygen config file.
Moved prototype for linearize_distance and constants MIN_IR_ADC8 andMAX_IR_ADC8 from rangefinder.c to rangefinder.h. Added Doxy comments for theseitems. Realize that linearize_distance was probably intended to be hidden fromthe average user, but doxy errors compelled me to act.
Remove some unused code in encoders
Also update binary and docs
Added missing inttypes header
Fixed Makefile docsFixed documentation
Added usb_puth* to serial.c/serial.h
Merged new orbs codeAdded atomic.hFixed whitespace in eeprom.h
Bugfix: BOM_S2 and BOM_S3 were switched, resulting in wrong addressing of the BOM detectors (0 1 2 3 8 9 10 11 4 5 6 7 12 13 14 15).
Fixed some errors due to BOM being used instead of BOM10
Added a odometry_velocity function that gives approximate speed of the robot in mm/s.
Added symbolic links to the odometry in mapping to the library, and provided documentation.
Integrated new BOM1.5 compatible code. Also put eeprom code for reading ID and BOM type from EEPROM. will need to program each robot's eeprom separately later. This has been tested and verified to work on robots with different BOM types.
Odometry will temporarily not work. Working code commented out. This commit is so the blight on the world that is colony math.h will be eradicated for all time.
added range_init() call to dragonfly_init(). you will no longer have to call range_init() separately in your programs
Changed some odometry stuff. Interrupt is called now.Still some problem that is not updating x and y data.
Updated libdragonfly makefile.
Reversed the left wheel. Encoders increment when the robot is moved forward.
Added spi and encoders to the trunk. Tested and worked. Encoders still read out directions backwards - i.e. there isn't a defined 'direction' forthe encoders to go with the wheels yet. I'll fix this about now.
Updated analog.c and analog.h documentation and regenerated the docs. No need to remake the library as its just comments.
added eeprom driver and a test for it
Brad your fix fails. Reverting. Setting doxygen to output to an absolute path makes it so it will only work on the trac computer. This also breaks the make docs target.
fixed doxyfile. commit working???????
Cleaned up some of Jason's tickets for dragonfly_lib. Now it should suck less.
added some TODOs to be addressed
recompiled library - orb_init was called twice by dragonfly init. template folder contains run around demo code (to be restored post-demo). the ords appear to work (at least for demo).
Apparently there were changes to bom.c and bom.h since the last time the library was compiled.
delay_ms has been rewritten to use _delay_loop_2 which is a 4 cycle implementation of a delay written in assembly. This is questionably more accurate but does not use floating point to make delays anymore. ...
updated comments for BOM wrapper functions. no compiler warnings since they just call the new code.
removed print statements from new BOM code, recompiled library.
moved new BOM code into trunk (wrapper functions, etc...). still need to research deprecated function warnings. FYI, get_max_bom(), bom_on(), and bom_off() are deprecated. See bom.h for new functions/usage.
Brace issue. For Jason's happiness.
Cleaned up analog.c code. Recompiled library. Mostly commenting and documentation fixes. No changes made to actual code.
fixed some style stuff
fixed style problems
Fixed analog bug again. Why does it keep coming back?
Copying Kevin's analog code over from the analog branch.
trying to get server to send back num robots, xbee ids, sensor matrix -- not working yet
Removed double orb initialization.
Updated libdragonfly documentation.
Updated build and documentation for libdragonfly, including reset.h, math.h and i2c.h.
Wee we committed i2c with many problems. But it should be ok.
Added libdragonfly project folder.