gpa in double prescision

Dependencies:   mbed

Revision:
4:47581778e863
Parent:
3:a951d699878b
Child:
5:e443d5ad409f
--- a/main.cpp	Thu Mar 01 10:59:47 2018 +0000
+++ b/main.cpp	Thu Mar 01 13:49:29 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
+//LinearCharacteristics 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