wireless: fixed debug statements and flash memory
Debugged from last update.
Put debug statements back in the code (instead of program space). Done by merging with version 1649, and just copying in the current new functions to send and receive.
wireless: removed debug prints from flash memory. Will add them back in an hour.
Added code to test_wireless2.c to actually test sending and receiving, and some ACK functionality.
Fixed a bug with send packet being too small.
wireless: reduced size by moving debug strings in xbee.c to flash memory. We now have 640 bytes left when compiling unit tests.
wireless: test_wireless2.c: moved debug strings to program space, so they all take up a total of 58 bytes. Still 300 bytes over the limit. Might have to separate the unit_tests such that only the currently running tests are compiled and linked.
Fixed return type of handlers.
wireless: test_wireless2.c updates
Made packet handlers have correct headers.
wireless: wireless2.c
created demos framework
Shortened hunter-prey tag distance in john folder. Deleted unnecessary 500 ms delay.
Added code to turn left and right instead of always turning one direction.
wireless: test_xbee is good. Need to start testing wireless_send and wireless_receive.
Deleted print statement.
Added code to check BOTH encoders for Prey turning instead of just one.
wireless: fixed API mode 1. Can now enter and exit API mode properly. Can also set and read MY address.
added robot testing code for IR data collection
moved code into computer subdir
Debugged circle.c so approaching works
analog loop goneA/D conversions now blockingA/D clock sped up
wireless: more debugging trying to get API mode 1 to work. We seem to get into API mode, but can't receive more than 3 bytes of the command response frame correctly.
Added #define to parameterize time to wait after TAG.
fixed not compiling libwireless
got the status flag masking to work. API mode still doesn't work
More modifications to circle.c
Merged circle code and added comments
Got xbee interrupt to work in command mode (API mode 0 off)Still working on API mode 1 ON
wl: update to unit tests, still doesn't work
update to test cases in trunk
New version of cicle_spacing. (It works now...). Before merging with circle.
Made Wireless_test compile and run. Report so far:Initialization works.Function registration works.XBee functions fail (David is fixing this).Sending packets in fast mode works.Termination fails with -2. Probably XBee related.
Cleaned up a few comments
Added behavior for ACK groups, which is still undeveloped and should be ignored. The folder Wireless_test is the program used to test the new wireless library and all its functions. It is still under development, but should be partially functional. It can currently test library initialization, function registration, and wireless termination.
This code changed the way that the Edges move toward the Center bot, I stopped using Han Jongs methods and added the methods correctTurn, correctApproach is still not functional, also I changed the color skeem for the orbs, going to center is still buggy.
wl: clean up unit tests
wl: the library fully compiles with all functions written
fixed references to handler array, wireless_receive compiles now
fixed handler array in wireless.c
I think this is John's code
Updated basic receive function and wrote handler dispatch function. The latter doesn't compile, but most of this directory doesn't.
wl updates: compile issues; now finished (for now)
Updated counting robots to work for circle formation. Movement is problematic.
wl updates: compile issues
Added wrappers to wireless_send.c. Need double checking.
Added diagnostic server stuff.
wireless: software retransmit done. serial functions moved to xbee.c
Small changes.. I definitely wouldn't use this for anything yet.
Added some test files for fixed point math.
Something definitely broke in cosine when I changed to smaller tables (which shouldn't have sacrificed any accuracy). Need to investigate...
wireless: more xbee.c updates
wireless: xbee update. still not finished, but the major changes are in here. Also added a function for microsecond delays to time.c
Added rangefinders directory to tools.
Added new software for basic analysis of IR data to be used with the IRcycle.c tool. Native Windows build only for the time being.
implemented wireless init, terminate, register, and unregister
Getting versions of circle.c in sync
Added comments and minor changes to circle.c
Removing the old circle-circle2 versions of the code (2)
Removing the old circle-circle2 versions of the code
removed .a library files from the repository. These will be automatically generated by the Makefile now
Included working functionality for Beacon to get acks from each robot.
wireless: update to the receive buffers
wireless: changed packet handler function notation
Wrote basic receive function in wireless_receive.c. Added an error code forhaving too short of a packet destination for basic receive function (maybe canalso be used by other packet handlers) in wl_defs.h. Added packet buffers forbasic packets and other types of packets in xbee.c.
wireless: added define for basic group
wireless: core send function and ack function done
Implementation of exponential. Not tested, don't even know if it works at all.
Cut the trig table sizes in 4 w/ symmetry, etc.
Lazy implementations of sine and tangent (that justuse cosine indirectly).
Addressed edge cases.
Needs EXTENSIVE testing to get a good grip on error bounds.
wireless branch, doxygen fix
corrected doxygen issue in wireless branch
Clarified description of the usrBOMvals variable for the bom_get_vector() funcions.
editing wireless branch, added error codes and constants
Tried to use bom_get_vector instead of bom_get_max.It works for the master (still need works), not for the slave (still need to figure out why)
Initial pass at a 32-bit fixed point library.
- Generated cosine / sine tables, put them in PROGMEM
- Wrote initial quadratic interpolation cosine function. ... not safe to use yet, but it seems to work for non-edge cases. Need to write a better way to test it.
added doxygen info for wireless branch
update to wireless api, added comments
added prototypes for the public api functions for the new wireless library
creating backup of libwireless in wireless branch
Working scheduler.
Booyakasha.
svn is being wonky...
Changes to the scheduler, still doesn't work.avr-gcc has its own convention for saving stateon entry and exit that's the same every time, soI lean on this now to restore the context.
I think that it's very close, my guess is that when new tasks are launched, RETI is ...
Added get_ir_offset to eeprom and changed program_eeprom.c so that it can read and modify them.
working version of wednesday 18 nov
Final clean up of ir_branch folder. Now should Make correctly.
Cleaning up ir_branch to Make correctly.
Fixed beacon robot wireless and working on Edge robot wireless
Fixing tools to Make correctly in Trunk. Reorganizing ir_branch to Make correctly.
deleting branch because i didn't branch the whole trunk before
changes of wednesday 18 nov
updated baud rate code (it works for 9600 and 115200 now, haven't tested the others)
Updated all makefiles. You may need to update the port settings to get your project to program the robots again.
added speed test behavior to wireless branch (this is where I'm testing the baud rate, which still doesn't work)
Fixed Makefile for circle_spacing behavior. Now links to the repository library.