Cube Mini Solution

Dependencies:   mbed QEI MPU6050 BLE_API nRF51822 MCP4725 eMPL_MPU6050

Revision:
19:2ffbd2af2b7f
Parent:
18:3b1aa67e11ca
Child:
20:b142ae11a12a
--- a/main.cpp	Fri May 29 15:40:58 2020 +0000
+++ b/main.cpp	Wed Aug 19 14:05:22 2020 +0000
@@ -102,6 +102,7 @@
 AnalogIn Velocity_Voltage_Input(p5); // Velocity Input as Analogue Signal from Escon
 DigitalOut Pin_3V3(p30);             // Defining P30 as 3V3 Pin for internal use. Please do not modify.
 InterruptIn Button(p6);        // User Button Interrput
+DigitalOut GLED(p21);
 
 // -------------------------------
 // Initialization of Values and Variables
@@ -132,7 +133,7 @@
 double Cuboid_Angle_Speed_Degrees = 0.0;
 
 // Low pass filter variables
-float t = 0.5f;
+float t = 0.5f;//0.5f;
 
 // Flywheel Position and Velocity variables
 double Velocity_Input_Voltage = 0.0f;
@@ -232,8 +233,9 @@
 //******************************************************************************
 int main()
 {
-
+    
     VoltageOut.write(2.5); // Output Zero Current to the Motor
+    GLED = 1;
 
     // Microcontroller initialization
     Pin_3V3.write(1);