grove: Small changes to build grove library

* Removed relay and rotary from grove library
    * Removed relay and rotary from grove SWIG interfaces
    * Fixed warning for o2 printf %
    * Fixed return value warning for _get_normalized method used by
      my analog sensors.

Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Noel Eck
2016-09-12 11:45:16 -07:00
parent f2211b9578
commit 1b9b142b2e
14 changed files with 10 additions and 35 deletions

View File

@ -24,7 +24,7 @@
#include <unistd.h>
#include <iostream>
#include "grove.hpp"
#include "relay.hpp"
int
main(int argc, char **argv)

View File

@ -25,7 +25,7 @@
#include <unistd.h>
#include <iostream>
#include <iomanip>
#include "grove.hpp"
#include "rotary.hpp"
using namespace std;

View File

@ -59,7 +59,7 @@ int main()
o2_get_raw_volts(sensor, &raw_volts);
o2_get_value(sensor, &o2_percent);
printf("O2 raw volts: %0.03f v, o2: %0.03f %\n",
printf("O2 raw volts: %0.03f v, o2: %0.03f %%\n",
raw_volts, o2_percent);
usleep(500000);