(DA) Internet of Things and Smart Electronics- ELE3006M2122
/
ObjectDetection_LiamCox
First Draft, serial print change based on distance
Diff: main.h
- Revision:
- 10:be53044119d1
- Parent:
- 9:ada61082bbaa
- Child:
- 11:5a895d966a3e
diff -r ada61082bbaa -r be53044119d1 main.h --- a/main.h Fri Jan 28 17:12:01 2022 +0000 +++ b/main.h Tue Feb 01 23:10:26 2022 +0000 @@ -48,7 +48,7 @@ * *******************************************************************************/ -int glass[] = {180,180,180,180,180,180}; //array for fist object (pint glass) +int glass[] = {180,180,180,180,180,180}; //array for first object (pint glass) int fsm[6] = {0b111110, 0b111101, 0b111011, 0b110111, 0b101111, 0b011111}; @@ -80,20 +80,21 @@ void object_sense6(); +void object_detection(); + ultrasonic mu(PTD0, PTC12, .5, 1, &dist); int sense; -int buffer1; +int Distance1; -int buffer2; +int Distance2; -int buffer3; +int Distance3; -int buffer4; - -int buffer5; +int Distance4; -int buffer6; +int Distance5; +int Distance6; #endif