Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of nucf446-cuboid-balance1_strong by
Revision 4:6457d61fd234, committed 2018-03-01
- Comitter:
- pmic
- Date:
- Thu Mar 01 13:48:32 2018 +0000
- Parent:
- 3:a951d699878b
- Child:
- 5:d6c7ccbbce78
- Commit message:
- corrected current caracteristics for full range
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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
