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
def dic_words(x):#function to check if a word is a word acording to the word file | |
with open('words1.txt') as word_file:# open english dictionary word file | |
if "%s" % x in word_file.read().split():#check if parameter is in that file | |
return True | |
else: | |
return False | |
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
real_letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] | |
def continue_gen(): | |
for n in range (0, 26): | |
key.append('%s' % real_letters[n]) | |
for o in range (0, 26): | |
key.append('%s' % real_letters[o]) | |
for p in range (0, 26): | |
key.append('%s' % real_letters[p]) | |
for q in range (0, 26): |
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
real_letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] | |
key = [] | |
count = 0 | |
for a in range (0, 26): | |
key.append('%s' % real_letters[a]) | |
for b in range (0, 26): | |
key.append('%s' % real_letters[b]) | |
for c in range (0, 26): | |
key.append('%s' % real_letters[c]) |
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
from math import sin, cos, atan, asin, sqrt, radians | |
w = 1.2 #wheelbase | |
v = 6 #speed in meters/sec of bike | |
g = 9.8 #constant of gravity in meters/sec | |
r = 10000000000 #radius of the turn | |
height = 0.75 #height of the center of mass | |
h = .5 #half of the length of the handlebar | |
t = 0.035 #half of the width of the tire | |
l = 0.8381 #length of the body of the actuator + 1.5 of the length of the fully extended actuator |
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
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(9600); | |
} | |
bool once = false; | |
float w = 1.2; //wheelbase | |
float v = 6; //speed in meters/sec of bike | |
float g = 9.8; //constant of gravity in meters/sec | |
float r = 10000000000; //radius of the turn |