Mercurial > hg > fxanalyse
view Plot.h @ 45:b47b97cfd050
Fix output frequency read back in DDS Fox driver
The FTW registry value was read back wrong due to an integer overflow in the
conversion from bytes string to double. This should fix the "jumps" seen in the
application of the frequency dedrifting.
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Wed, 10 Oct 2012 12:14:01 +0200 |
parents | d9aae7d7f2c6 |
children | bd28161e5ac2 |
line wrap: on
line source
#include "YLCStuff.h" #define MAXPOINTSNUMBER 10000 typedef struct { PanelHandle PlotPanel ; // le handle sur le graphe void (*OnClosePanel)(int); // pointer on a function to execute when the panel is closed (argument is the panel Handle) int IndexPoint ; // le nombre de points à plotter double * Frequencies ; // les valeurs à plotter (alloué dynamiquement par le constructeur...) double Mean, Slope, ADev ; // les valeurs de moyenne, pente et deviation d'Allan calculés au fur et à mesure } Plot_Data ; int Plot_InitPanel(Plot_Data * Instance, char * title, double PlotMin, double PlotMax, void (*OnCloseFunc)()) ; int Plot_ClosePanel(Plot_Data * Instance) ; int Plot_AddFrequency(Plot_Data * Instance, double Freq) ;