i have made major changes to the code and it really needs to be debugged/verified. the code compiles for the teensy 3.1, but i haven't done any verification on it yet.

here are the changes:
1. incorporated manual, automatic, wp_mode, and reset into the code
2. the RESET function call needs to be added to AVC_2014.ino
3. i removed manual, aux, automatic from the code. this affected quite a few different files.
4. configured the teensy to use the pins in the bread board that nathan created. i added #define's to AVC_2014.h to call out those pins.
5. i moved the start sequence from "void setup()" to its own function.
6. i updated the interrupt pin to use the pin on the teensy.

there are probably more changes, but that's all for now. once again, the code needs to be debugged. i recommend setting up a few additional routines in the start menu to test each function and part of the code.

Signed-off-by: rkburnside <richard@burnsides.org>
updated fail_safe.ino. changed the following:

1. radio settings for low, medium, high should be: -100, 0, 100 and that corresponds to 1000, 1250, 1750, 2000us pulses
2. added #define's for high and low pulses in
3. rearranged positions of the "check_if_reset_requested()" function
4. added code comments. hopefully it is more readable now.
5. decreased flashing time for the reset LED so that it lasts ~2s instead of ~5s
6. updated function that calls the reset command. it will set the reset pins for 1s and then switch it to manual mode. hopefully that is long enough for the teensy to receive the command, but not so long that it resets the teensy multiple times

Signed-off-by: unknown <rburnsid@SSCLB2146NT2.acct02.us.lmco.com>
changes:

1. cleaned up some indentation that was 4 spaces instead of a tab. this affected nearly/all files.
2. corrected the mode so that manual, automatic, wp_mode, and reset are received correctly and correspond to the fail_safe.ino code.
3. implemented the RESET function for the chip. this will disconnect the USB temporarily...i think. this is not yet tested, but should be correct. see the following link for more details: http://goo.gl/nV8kMs
4. cleaned up the order of the some lines in the setup section of AVC_2014.ino

Signed-off-by: unknown <rburnsid@SSCLB2146NT2.acct02.us.lmco.com>
1. made the "time" variable in the gyro file be static and local instead of global.

Signed-off-by: unknown <rburnsid@SSCLB2146NT2.acct02.us.lmco.com>
just a bit of clean up
IMPORTANT change...

when the WP_MODE is set, it now disables the MCU control of the ESC and servo. this will ensure that the car stays stationary when setting waypoints. it has been tested and debugged and works great!

Signed-off-by: rkburnside <richard@burnsides.org>
LOTS of changes in this commit...

1. AVC_2014.h: just has a simple waypoint change

2. serial output has been changed so that all serial communications will now be done through the BT serial module and the phone. the only exception is during display_waypoints, the serial output is echoed on the USB serial port so that the points may be displayed and manipulated on a PC

3. AVC_2014.ino: removed the "if(wpr_count >= WAYPOINT_COUNT)" function in the loop section. this function was used to make the car stationary when setting waypoints. HOWEVER, fail_safe.ino has been updated to disable the MCU control of the car when setting waypoint...so the function above is not irrelevant and was removed.

4. CALIBRATION.cpp: added function to cause the servo to sweep to make sure that it actually works on the teensy.

5. DECLARATIONS.h: added void servo_test();

6. GYRO.cpp: serial output to serial BT

7. MENU.cpp: serial output to serial BT. added servo_test() function

8. NAVIGATION.cpp: serial output to serial BT

9. WAYPOINTS.cpp: serial output to serial BT

Signed-off-by: rkburnside <richard@burnsides.org>
1. just a few minor updates to the main AVC_2014 code.

2. added the i2c_t3 library. it does NOT compile using this library. more work is needed on the I2CDev code and other files.

Signed-off-by: rkburnside <richard@burnsides.org>
changed the fail_safe.ino to include a hard reset pin that will be toggled HIGH to indicate that a hard reset has been requested. AVC_2014.ino and AVC_2014.h will next be updated to have an interrupt that will toggle RESET when the pin goes HIGH.

the radio should now have 4 positions for channel 3:

MANUAL -> ch3 < 1250
AUTOMATIC -> 1250 < ch3 <= 1500
AUX -> 1500 < ch3 <= 1750
WP_SET -> ch3 > 1750

Signed-off-by: rkburnside <richard@burnsides.org>
AVC_2014.h and AVC_2014.ino updated to include RESET pin on an interrupt. We need to solder in an additional line from the pro mini to the teensy to enable the reset feature.

Signed-off-by: rkburnside <richard@burnsides.org>
Merge pull request #4 from rkburnside/teensy_pin_pin_configuration

Teensy pin pin configuration