Skip to content

Instantly share code, notes, and snippets.

View HFreni's full-sized avatar

Harrison Freni HFreni

View GitHub Profile
@HFreni
HFreni / vexRoles.json
Last active September 12, 2016 20:10
{
Role: {
position: 0,
permissions: 104057857,
name: '@everyone',
mentionable: false,
managed: false,
id: '197777408198180864',
hoist: false,
color: 0 },
typedef struct {
real_t derState; // Last position input
real_t integratState; // Integrator state
real_t integratMax, // Maximum and minimum
integratMin; // allowable integrator state
real_t integratGain, // integral gain
propGain, // proportional gain
derGain; // derivative gain
} SPid;
real_t UpdatePID(SPid * pid, real_t error, real_t position) {
there is n:d=4,o=5,b=150:12d3,24f#3,39p,64e,12a3,12p,12p,12f#3,24f#3,39p,64g,12a3,12p,12p,12a3,12f#3,12a3,12p,12p,12d4,12f#3,12a3,12p,12p,12b3,12b3,12d4,12p,12p,12g3,12b3,12d4,12p,12p,12d3,12f#3,12a3,12p,12p,12f#3,12f#3,12a3,12p,12p,12g3,24b3,39p,64f#,12d4,12p,12p,12b3,24b3,39p,64a,12d4,12p,12p,12d3,24f#3,39p,64e,12a3,12p,12p,12f#3,24f#3,39p,64a4,12a3,12p,12p,12e3,24g3,39p,64d,12b3,12p,12p,12g3,24g3,39p,64f#,12b3,12p,12p,12a3,12c#4,12e4,12p,12p,12c#3,12b3,12a3,12p,12p,12d3,24f#3,39p,64e,12a3,12p,12p,12f#3,24f#3,39p,64g,12a3,12p,12p,12a3,12f#3,12a3,12p,12p,12d4,12f#3,12a3,12p,12p,12b3,12b3,12d4,12p,12p,12g3,12b3,12d4,12p,12p,12d3,12f#3,12a3,12p,12p,12f#3,12f#3,12a3,12p,12p,12g3,24b3,39p,64f#,12d4,12p,12p,12b3,24b3,39p,64a,12d4,12p,12p,12d3,24f#3,39p,64e,12a3,12p,12p,12f#3,24f#3,39p,64a4,12a3,12p,12p,12e3,24g3,39p,64d,12b3,12p,12p,12g3,24g3,39p,64f#,12b3,12p,12p,12a3,12c#4,12e4,12p,12p,12c#3,12b3,12a3,12p,12p,12g2,24b3,39p,64a4,12d4,12p,12p,12b2,24b3,39p,64c#,12d4,12p,12p,12d3,12f#3,12a3,12p,12p,12f#3,24f#3,39p
@HFreni
HFreni / Level1.m
Last active March 7, 2016 22:57
Try Objective-C
NSLog(@"Harrison")
NSString *firstName = @"Harrison";
NSLog(firstName);
NSLog(@"Hello there, %@.", firstName);
NSLog(@"%@ %@", firstName, firstName);
NSString *lastName = @"Freni";
NSLog(@"%@ %@", firstName, lastName);
NSNumber *age = @16;
NSLog(@"%@ is %@ years old", firstName, age);
NSArray *apps = @[@"AngryFowl", @"Lettertouch", @"Tweetrobot"];
def f(x):
return x**2
print(str(f(4)))
print("Welcome to Harrison's Movie Ticket Software!\nWARNING: You May Only Have 4 Guests.")
p1a = input("Please enter the age of your first guest: ")
p2a = input("Please enter the age of your first guest: ")
p3a = input("Please enter the age of your first guest: ")
p4a = input("Please enter the age of your first guest: ")
guests = [p1a, p2a, p3a, p4a]
# Print a message to welcome the buyer
print("Welcome to Harrison's Movie Ticket Software!")
#Inputs To Check for how many people
k = input("Please enter the number of children: ")
a = input("Please enter the number of adults: ")
s = input("Please enter the number of seniors: ")
#Price Variables
kP = 10
name = "Harrison"
age = 16
hobbies = ["Robotics", "Programming", "Gaming", "Skiing"]
print(name + " Is " + str(age) + " Years Old")
for hobby in hobbies:
print(name + " likes: " + hobby)
@HFreni
HFreni / Code.c
Last active November 3, 2015 02:43
/* The P is a really small value, so lets say the high speed is 80 and the low speed is 20, if you are 1000 rpm
* away it might go at 110 but as you get close it will decrease to 80, and if you are 1000 rpm above it would
* at 0 and as you get slower and approach the target speed you will get closer to 20 just going 127 and 0 will
* cause you to overshoot and drop over and over again, using P ontop of it will help reduce the amount of drop
* and overshoot while still having the fast recovery time of bang bang.
*
* Formula: highspeed + difference in rpm * P constant, lowspeed + differnece in rpm * P constant
*/
float kP = 0.0;