]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/tmirws/sensors/WindVaneAdcP.nc
Work on wind sensor move to Davis Instruments.
[tinyos-2.x.git] / tos / platforms / tmirws / sensors / WindVaneAdcP.nc
index b4e920548f8fad9033361f9b099ee767a18b46eb..e898db0fa41bc0eb8133ff30eb0f022a9b36b085 100644 (file)
@@ -51,13 +51,13 @@ implementation {
    * jumping around.  The external reference of 2.50V seems stable.
    */
   const msp430adc12_channel_config_t config = {
-      inch: INPUT_CHANNEL_A0, // A2
-#if 0 /* internal references unstable */
+      inch: INPUT_CHANNEL_A2,
+#if 1 /* internal references unstable (no, I don't think so) */
       sref: REFERENCE_VREFplus_AVss,
-      ref2_5v: REFVOLT_LEVEL_1_5, /* REFVOLT_LEVEL_2_5, */
-#else /* external reference is stable */
+      ref2_5v: /*REFVOLT_LEVEL_1_5, */ REFVOLT_LEVEL_2_5,
+#else /* external reference is stable, and is 2.5V */
       sref: REFERENCE_VeREFplus_AVss,
-      ref2_5v: REFVOLT_LEVEL_1_5,
+      ref2_5v: REFVOLT_LEVEL_1_5, 
 #endif
 #if 0 /* clock source doesn't seem to affect stability */
       adc12ssel: SHT_SOURCE_ADC12OSC,