This file contains hidden or 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 [] = MATLAB_AIR_HOCKEY_PONG() | |
| %close all open figures, clear all variables, and clear command window | |
| close all | |
| clear all | |
| clc | |
| % //////////CONSTANTS\\\\\\\\\\ | |
| % gameplay settings |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
| % | |
| ( HUEY MACHINING ) | |
| N10 (**********) | |
| N20 | |
| N30 (T2-Nevada) | |
| N40 (T3-Mario) | |
| N50 | |
| N60 (**********) | |
| N70 | |
| N80 G90 G17 G80 G40 |
This file contains hidden or 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
| /* Name: main.c | |
| * Author: Tristan Peyton | |
| */ | |
| #include "teensy_general.h" // includes the resources included in the teensy_general.h file | |
| #include <avr/io.h> //includes the resources included in the avr/io.h file | |
| #include "t_usb.h" //includes the resources included in the t_usb.h file | |
| #include "ADC.h" //includes the resources included in the ADC.h file | |
| #include <stdlib.h> //includes the resources included in the stdlib.h file | |
| #define F_CPU 16000000UL //redefines CPU operation frequency |
This file contains hidden or 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
| /* Lab 3.2: Controller Code | |
| * Team: Kien Lin, Alfa Lopez, Tristan Peyton | |
| * Overview: | |
| * Be able to control control based on whether GO! command is received | |
| * Send potentiometer values from servo and dc motor to RC car | |
| */ | |
| //Wifi Initialization | |
| #include <WiFi.h> | |
| #include <WiFiUdp.h> |
This file contains hidden or 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
| //initializing variables for servo | |
| #define SERVO_OUTPUT 33 | |
| #define freq_servo 50 | |
| #define channel_servo 1 | |
| #define resolution_servo 8 | |
| //initializing variables for motor | |
| #define Motor_Channel 0 | |
| #define Motor_RESOLUTION_BITS 13 | |
| #define Motor_RESOLUTION 13 |
This file contains hidden or 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
| //MEAM 510 LAB 3.1.4 Code --> Tristan Peyton | |
| //Wifi Initialization | |
| #include <WiFi.h> | |
| #include <WiFiUdp.h> | |
| const char* ssid = "TP"; | |
| const char* password = "Mechatronics"; |
This file contains hidden or 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
| #include <stdio.h> | |
| #include "esp_log.h" | |
| #include "driver/i2c.h" | |
| #include "sdkconfig.h" | |
| //LED STUFF++++++++++++++++++++++++++++++++++++++++ | |
| #include "FastLED.h" | |
| FASTLED_USING_NAMESPACE | |
| #define ROBOTNUM 4 // robot number |
This file contains hidden or 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
| /* Name: main.c | |
| * Author: Tristan Peyton | |
| */ | |
| #include "teensy_general.h" //includes the resources included in the teensy_general.h file | |
| #include <avr/io.h> //includes the resources included in the avr/io.h file | |
| #include <stdio.h> //inclueds the resources included in the stdio.h file | |
| #include "t_usb.h" //includes the resources included in the t_usb.h file | |
| #define F_CPU 16000000UL //redefines CPU operation frequency to 16 MHz | |
| // global variables |