Test of pmic GPA with filter

Dependencies:   mbed

Fork of nucf446-cuboid-balance1_strong by RT2_Cuboid_demo

Revision:
4:6457d61fd234
Parent:
3:a951d699878b
Child:
5:d6c7ccbbce78
--- a/main.cpp	Thu Mar 01 10:59:47 2018 +0000
+++ b/main.cpp	Thu Mar 01 13:48:32 2018 +0000
@@ -67,7 +67,8 @@
 IIR_filter f_ay(comp_filter_tau,Ts);                // 1st order LP for complementary filter acc_y
 IIR_filter f_gz(comp_filter_tau,Ts,comp_filter_tau);// 1st order LP for complementary filter gyro
 // define some linear characteristics -----------------------------------------
-LinearCharacteristics i2u(0.8f,-2.0f);              // convert desired current (Amps)  -> voltage 0..3.3V
+//9LinearCharacteristics i2u(0.8f,-2.0f);              // max. 2 A, convert desired current (Amps)  -> voltage 0..3.3V
+LinearCharacteristics i2u(0.1067f,-15.0f);          // full range, convert desired current (Amps)  -> voltage 0..3.3V
 LinearCharacteristics u2n(312.5f,1.6f);             // convert input voltage (0..3.3V) -> speed (1/min)
 LinearCharacteristics u2w(32.725,1.6f);             // convert input voltage (0..3.3V) -> speed (rad/sec)
 LinearCharacteristics u2ax(14.67f,1.6378f);         // convert input voltage (0..3.3V) -> acc_x m/s^2