X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=sensors%2Fsensors.c;h=87fe18ab8358b0694872eeecb2259abc4e6d1c44;hb=3c1462cf842e20d27dab894e069e75a474536a4f;hp=272b291b5454bb15d7a2223910754100b7c549c0;hpb=364c8190eed3a8339542303243370f1da8fee1dd;p=fw%2Fopenalt diff --git a/sensors/sensors.c b/sensors/sensors.c index 272b291..87fe18a 100644 --- a/sensors/sensors.c +++ b/sensors/sensors.c @@ -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()); } }