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
edge_utils/edge_chart.h@1:8818b793d147, 2018-02-23 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
Rhyme | 0:ce97f6d34336 | 1 | #ifndef _EDGE_CHART_H_ |
Rhyme | 0:ce97f6d34336 | 2 | #define _EDGE_CHART_H_ |
Rhyme | 0:ce97f6d34336 | 3 | #include "mbed.h" |
Rhyme | 0:ce97f6d34336 | 4 | |
Rhyme | 0:ce97f6d34336 | 5 | typedef struct _edge_chart_st { |
Rhyme | 0:ce97f6d34336 | 6 | char *name ; |
Rhyme | 0:ce97f6d34336 | 7 | int left ; |
Rhyme | 0:ce97f6d34336 | 8 | int top ; |
Rhyme | 0:ce97f6d34336 | 9 | int width ; |
Rhyme | 0:ce97f6d34336 | 10 | int height ; |
Rhyme | 0:ce97f6d34336 | 11 | int index ; |
Rhyme | 0:ce97f6d34336 | 12 | float min ; |
Rhyme | 0:ce97f6d34336 | 13 | float max ; |
Rhyme | 0:ce97f6d34336 | 14 | } edge_chart_type ; |
Rhyme | 0:ce97f6d34336 | 15 | |
Rhyme | 0:ce97f6d34336 | 16 | extern edge_chart_type edge_chart[] ; |
Rhyme | 0:ce97f6d34336 | 17 | |
Rhyme | 0:ce97f6d34336 | 18 | void draw_chart_frame(edge_chart_type *p) ; |
Rhyme | 0:ce97f6d34336 | 19 | void draw_all_chart_frame(void) ; |
Rhyme | 0:ce97f6d34336 | 20 | |
Rhyme | 0:ce97f6d34336 | 21 | |
Rhyme | 0:ce97f6d34336 | 22 | #endif /* _EDGE_CHART_H_ */ |