| Rev | Line |  | 
|---|
| [534] | 1 | // gyrocalibrator.h | 
|---|
|  | 2 | // Eric Aubourg         CEA/DAPNIA/SPP   octobre 1999 | 
|---|
|  | 3 |  | 
|---|
|  | 4 | #ifndef GYROCALIBRATOR_H | 
|---|
|  | 5 | #define GYROCALIBRATOR_H | 
|---|
|  | 6 |  | 
|---|
| [555] | 7 | #include "toipullproducer.h" | 
|---|
| [534] | 8 |  | 
|---|
|  | 9 | #include <vector> | 
|---|
|  | 10 |  | 
|---|
| [555] | 11 | class GyroCalibrator : public TOIPullProducer { | 
|---|
| [534] | 12 | public: | 
|---|
|  | 13 | GyroCalibrator(); | 
|---|
|  | 14 | virtual void dataFeed(TOIProducer* source, TOI const& toi, long sampleNum, double value); | 
|---|
|  | 15 | virtual string getName(); | 
|---|
|  | 16 |  | 
|---|
|  | 17 | virtual bool   canGetValue(long sampleNum, TOI const& toi); // for this samplenum | 
|---|
| [555] | 18 | virtual bool   canGetValueLater(long sampleNum, TOI const& toi);  // Might, later but not now | 
|---|
|  | 19 |  | 
|---|
| [534] | 20 | virtual double getValue(long sampleNum, TOI const& toi); | 
|---|
| [555] | 21 |  | 
|---|
| [534] | 22 | protected: | 
|---|
|  | 23 | virtual set<TOI>     reqTOIFor(TOI const&); | 
|---|
|  | 24 | virtual void         propagateLowBound(TOI const&, long sampleNum); | 
|---|
|  | 25 |  | 
|---|
| [555] | 26 | virtual void recomputeCalib(); | 
|---|
|  | 27 | virtual bool fetchFences(long sampleNum); | 
|---|
|  | 28 |  | 
|---|
|  | 29 |  | 
|---|
| [534] | 30 | long startSample; | 
|---|
| [555] | 31 | vector<double> gyro[3]; | 
|---|
| [534] | 32 | long lastFence1, lastFence2; | 
|---|
| [555] | 33 | double lastRotSpeed; // on gyro 2 | 
|---|
|  | 34 | double lastCalib[3]; | 
|---|
|  | 35 | double lastOffset[3]; | 
|---|
|  | 36 | TOIProducer* gyroProducer; | 
|---|
| [534] | 37 | }; | 
|---|
|  | 38 |  | 
|---|
|  | 39 |  | 
|---|
|  | 40 |  | 
|---|
|  | 41 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.