v0.1 board believed to be reading Vbat, Pressure, and X/Y/Z correctly now,
[fw/openalt] / sensors / sensors.c
index 272b291b5454bb15d7a2223910754100b7c549c0..87fe18ab8358b0694872eeecb2259abc4e6d1c44 100644 (file)
@@ -56,14 +56,13 @@ portTASK_FUNCTION (vSensorsTask, pvParameters __attribute__ ((unused)))
 
   xTickCount = xTaskGetTickCount ();
 
-  adcStartXYZ();
-
   for (;;)
   {
     vTaskDelayUntil (&xTickCount, 100 / portTICK_RATE_MS);
 
     // printf("tick\n");
 
+#ifndef BDALE
     //
     //  Adjust the DAC value so we output a slow sine wave
     //
@@ -94,12 +93,14 @@ portTASK_FUNCTION (vSensorsTask, pvParameters __attribute__ ((unused)))
 
       xSemaphoreGive (semaphore);
     }
+#endif
 
     //
     //  get and display last X, Y, and Z accelerometer readings,
     //  the start another conversion
     //
-    printf("%04x %04x %04x\n", adcReadX(), adcReadY(), adcReadZ());
+    printf("Vbat %04x  Pres %04x  X %04x  Y %04x  Z %04x\n", 
+       adcReadVbat(), adcReadPres(), adcReadX(), adcReadY(), adcReadZ());
 
   }
 }