An interactive version of a Reingold–Tilford tree. Click on the nodes to expand or collapse.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ---------------- | |
# User Instructions | |
# | |
# Implement twiddle as shown in the previous two videos. | |
# Your accumulated error should be very small! | |
# | |
# You don't have to use the exact values as shown in the video | |
# play around with different values! This quiz isn't graded just see | |
# how low of an error you can get. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ----------- | |
# User Instructions | |
# | |
# Implement a P controller by running 100 iterations | |
# of robot motion. The steering angle should be set | |
# by the parameter tau so that: | |
# | |
# steering = -tau_p * CTE - tau_d * diff_CTE - tau_i * int_CTE | |
# | |
# where the integrated crosstrack error (int_CTE) is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function(data){ | |
//loop through the results with the following function | |
$.each(data.photoset.photo, function(i,item){ | |
//build the url of the photo in order to link to it | |
var photoURL = 'http://farm' + item.farm + '.static.flickr.com/' + item.server + '/' + item.id + '_' + item.secret + '_m.jpg' | |
//turn the photo id into a variable | |
var photoID = item.id; |