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: BSP_DISCO_L476VG COMPASS_DISCO_L476VG ConfigFile GYRO_DISCO_L476VG SDFileSystem mbed
Mesure.h
00001 #include "mbed.h" 00002 #include "COMPASS_DISCO_L476VG.h" 00003 #include "GYRO_DISCO_L476VG.h" 00004 00005 #ifndef MESURE_H 00006 #define MESURE_H 00007 #define NbDAC 5 00008 /*--------------------------------------------- 00009 Manage acquisitions 00010 Compass 00011 Acceleration 00012 Gyroscope 00013 00014 !!! calibration to be defined in the constructor !!! 00015 00016 */ 00017 00018 class tMesure 00019 { 00020 public: 00021 tMesure(COMPASS_DISCO_L476VG * apCompass, GYRO_DISCO_L476VG * apGyro, AnalogIn * apAIn[NbDAC]); 00022 00023 void Update(); 00024 void Save(FILE * apFile); 00025 00026 private: 00027 COMPASS_DISCO_L476VG * pCompass; 00028 GYRO_DISCO_L476VG * pGyro; 00029 00030 double Mag[3]; 00031 double Acc[3]; 00032 double Omega[3]; 00033 double AIO[NbDAC]; 00034 00035 double OffsetMag[3]; 00036 double OffsetAcc[3]; 00037 double OffsetOmega[3]; 00038 double OffsetAIO[NbDAC]; 00039 00040 double GainMag[3]; 00041 double GainAcc[3]; 00042 double GainOmega[3]; 00043 double GainAIO[NbDAC]; 00044 00045 AnalogIn * pAIn[NbDAC]; 00046 00047 }; 00048 #endif
Generated on Thu Jul 14 2022 08:24:02 by
1.7.2