Skip to content

Commit

Permalink
Merge branch 'master' into tiffany_shield_update
Browse files Browse the repository at this point in the history
  • Loading branch information
dtom2941 authored Oct 14, 2019
2 parents eb11e9a + 9465dbf commit 702be98
Show file tree
Hide file tree
Showing 95 changed files with 6,806 additions and 3,786 deletions.
Empty file modified Electrical/Transistor/code/lib_avr/encoder/Encoder.h
100644 → 100755
Empty file.
Empty file modified Electrical/Transistor/code/lib_avr/encoder/Rotary.cpp
100644 → 100755
Empty file.
Empty file modified Electrical/Transistor/code/lib_avr/encoder/Rotary.h
100644 → 100755
Empty file.
28 changes: 14 additions & 14 deletions Electrical/Transistor/code/radio_buggy_mega/arduinoReset.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#! /usr/bin/python

import serial
import time
import sys

if len(sys.argv) != 2:
print "Please specify a port, e.g. %s /dev/ttyUSB0" % sys.argv[0]
sys.exit(-1)

ser = serial.Serial(sys.argv[1])
ser.setDTR(1)
time.sleep(0.5)
ser.setDTR(0)
#! /usr/bin/python

import serial
import time
import sys

if len(sys.argv) != 2:
print "Please specify a port, e.g. %s /dev/ttyUSB0" % sys.argv[0]
sys.exit(-1)

ser = serial.Serial(sys.argv[1])
ser.setDTR(1)
time.sleep(0.5)
ser.setDTR(0)
ser.close()
2 changes: 2 additions & 0 deletions Electrical/Transistor/code/radio_buggy_mega/main.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ int main(void) {
dbg_printf("RC Timeout! %lu %lu %lu\n", delta1, delta2, delta3);
} else {
g_errors &= ~_BV(RBSM_EID_RC_LOST_SIGNAL);
lights_rc.Disable();
}

// then check for timeout under autonomous
Expand All @@ -565,6 +566,7 @@ int main(void) {
dbg_printf("Auton Timeout! %lu %lu\n", delta4, delta5);
} else {
g_errors &= ~_BV(RBSM_EID_AUTON_LOST_SIGNAL);
lights_auton.Disable();
}
// or reset the system if connection is back and driver engages brakes
} else {
Expand Down
6 changes: 3 additions & 3 deletions Legacy/offline/controller/controller_analysis.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
addpath('../localizer/latlonutm/Codes/matlab');
addpath('../localizer/altmany-export_fig');

file = 'controller_v2.mat';
file = 'controller_v3.mat';
load(file, 'trajectory');
save_plot = false;
show_maps = true;
Expand All @@ -16,7 +16,7 @@
desired = [x y];
desired = desired(112:(end-50), :);

k = 1000;
k = 1000;
if show_maps
wmline(trajectory(6,1:k:end), trajectory(7,1:k:end), 'Color', 'r')
end
Expand All @@ -25,7 +25,7 @@
figure();
hold on;
plot(trajectory(1,1:k:end), trajectory(2,1:k:end))
quiver(trajectory(1,1:k:end), trajectory(2,1:k:end), cos(heading), sin(heading))
quiver(trajectory(1,1:k:end), trajectory(2,1:k:end), cos(heading), sin(heading), 0.3)
plot(desired(:,1), desired(:,2), 'g')
hold off;
title(['Map ', file]);
Expand Down
2 changes: 1 addition & 1 deletion Legacy/offline/controller/waypoint_analysis.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
addpath('../localizer/latlonutm/Codes/matlab');
show_maps = false;

load('./waypoints_course.mat');
load('./waypoints_course_v2.mat');
[x, y, zone] = ll2utm(logs);
desired = [x y];

Expand Down
Loading

0 comments on commit 702be98

Please sign in to comment.