Color sensor reset at the end of calibration added. sensor id auto assignment was changed to be a fixed value assignment to avoid sensor id shift when some sensor is absent.

Dependencies:   UniGraphic mbed vt100

Committer:
Rhyme
Date:
Fri Feb 23 07:51:55 2018 +0000
Revision:
1:8818b793d147
Parent:
0:ce97f6d34336
Wrong behavior when one of color sensor is missing has been fixed.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Rhyme 0:ce97f6d34336 1 #ifndef _PSE530_H_
Rhyme 0:ce97f6d34336 2 #define _PSE530_H_
Rhyme 0:ce97f6d34336 3 #include "mbed.h"
Rhyme 0:ce97f6d34336 4
Rhyme 0:ce97f6d34336 5 /**
Rhyme 0:ce97f6d34336 6 * PSE530 Pressure Sensor
Rhyme 0:ce97f6d34336 7 */
Rhyme 0:ce97f6d34336 8
Rhyme 0:ce97f6d34336 9 class PSE530 {
Rhyme 0:ce97f6d34336 10 public:
Rhyme 0:ce97f6d34336 11 /**
Rhyme 0:ce97f6d34336 12 * Constructor
Rhyme 0:ce97f6d34336 13 */
Rhyme 0:ce97f6d34336 14 PSE530(AnalogIn *ain) ;
Rhyme 0:ce97f6d34336 15
Rhyme 0:ce97f6d34336 16 /**
Rhyme 0:ce97f6d34336 17 * destructor
Rhyme 0:ce97f6d34336 18 */
Rhyme 0:ce97f6d34336 19 ~PSE530(void) ;
Rhyme 0:ce97f6d34336 20
Rhyme 0:ce97f6d34336 21 /**
Rhyme 0:ce97f6d34336 22 * getPressure
Rhyme 0:ce97f6d34336 23 * @returns float pressure in kgf/cm2
Rhyme 0:ce97f6d34336 24 */
Rhyme 0:ce97f6d34336 25 float getPressure(void) ;
Rhyme 0:ce97f6d34336 26 private:
Rhyme 0:ce97f6d34336 27 AnalogIn *_ain ;
Rhyme 0:ce97f6d34336 28 } ;
Rhyme 0:ce97f6d34336 29
Rhyme 0:ce97f6d34336 30 #endif /* _PSE530_H_ */