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
| t = tcpclient('localhost', 5005); | |
| while(1) | |
| payload = read(t,16); | |
| time =typecast(payload(1:4),'uint32'); | |
| xacc = typecast(payload(5:6),'int16'); | |
| yacc = typecast(payload(7:8),'int16'); | |
| zacc = typecast(payload(9:10),'int16'); | |
| rotx = typecast(payload(11:12),'int16'); | |
| roty = typecast(payload(13:14),'int16'); |
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
| using UnityEngine; | |
| #if UNITY_EDITOR | |
| using UnityEditor; | |
| using System.IO; | |
| #endif | |
| using System.Collections; | |
| /** Utility class for handling singleton ScriptableObjects for data management */ | |
| public abstract class ScriptableSingleton<T> : ScriptableObject where T : ScriptableSingleton<T>{ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| /* | |
| LiquidCrystal Library - Hello World | |
| Demonstrates the use a 16x2 LCD display. The LiquidCrystal | |
| library works with all LCD displays that are compatible with the | |
| Hitachi HD44780 driver. There are many of them out there, and you | |
| can usually tell them by the 16-pin interface. | |
| This sketch prints "Hello World!" to the LCD | |
| and shows the time. | |
| The circuit: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| //----------------------- Pins ------------------------------------ | |
| const int FSR_BACK = 1; | |
| const int FSR_FRONT = 0; | |
| const int BUZZER_PIN = 2; | |
| //----------------------- Time Constants ------------------------- | |
| // determins when the shoe should write to the logger | |
| const unsigned long SLEEP_TIME = 10000; |
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<Wire.h> | |
| #include <LiquidCrystal.h> | |
| const int MPU_addr = 0x68; // I2C address of the MPU-6050 | |
| const float THRESHOLD = .4f; // Threshold for position change | |
| const int rs = 12, en = 11, d4 = 6, d5 = 7, d6 = 8, d7 = 9; | |
| const int piezoPin = 4; | |
| LiquidCrystal lcd(rs, en, d4, d5, d6, d7); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| Desktop is 2560 x 1440 @ 60 Hz | |
| New context 0x385a0a0 created with attributes: | |
| Initialize engine version: 2017.3.1p3 (a66397957d3b) | |
| GfxDevice: creating device client; threaded=1 | |
| Renderer: AMD Radeon R9 200 Series (AMD HAWAII / DRM 3.18.0 / 4.13.0-38-generic, LLVM 5.0.0) | |
| Vendor: X.Org | |
| Version: 4.5 (Core Profile) Mesa 17.2.8 | |
| GLES: 0 | |
| GL_AMD_conservative_depth GL_AMD_draw_buffers_blend GL_AMD_performance_monitor GL_AMD_pinned_memory GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export GL_AMD_shader_trinary_minmax GL_AMD_vertex_shader_layer GL_AMD_vertex_shader_viewport_index GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_ES2_compatibility GL_ARB_ES3_1_compatibility GL_ARB_ES3_2_compatibility GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_base_instance GL_ARB_bindless_texture GL_ARB_blend_func_extended GL_ARB_buffer_storage GL_ARB_clear_buffer_object GL_ARB_clear_texture GL_ARB_clip_control GL_ARB_color_buffer_float GL_ARB_compressed_texture_pixel_storage GL_ |