Grelet Jacques
/
Ni-MH_V3
example code using statis library for temperature measurement with LM35 and LM335
Diff: statis.cpp
- Revision:
- 6:95195b0995dd
- Parent:
- 5:0b3569945178
diff -r 0b3569945178 -r 95195b0995dd statis.cpp --- a/statis.cpp Sat Nov 24 13:36:58 2012 +0000 +++ b/statis.cpp Wed Nov 28 18:48:22 2012 +0000 @@ -17,7 +17,7 @@ #include "mbed.h" extern Serial pc; -#undef DEBUG +//#undef DEBUG #include <debug.h> #include <math.h> @@ -72,7 +72,7 @@ /***************************************************************************** * n_elem est forcement impair (protege par Statis_data::mediane()) * *****************************************************************************/ -Mediane_item &Mediane::mediane( Mediane_item list[],int n_elem ) +Mediane_item &Mediane::mediane( Mediane_item list[],unsigned n_elem ) { switch( n_elem ) { case 1 : return( list[ 0 ] ); @@ -88,7 +88,7 @@ /***************************************************************************** * n_elem est forcement impair (protege par Statis_data::mediane()) * *****************************************************************************/ -Mediane_item &Mediane_circ::mediane( Mediane_item list[],int n_elem ) +Mediane_item &Mediane_circ::mediane( Mediane_item list[],unsigned n_elem ) { int delta_nord, delta_sud,