Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of dgps by
Diff: handle/handleCamera.cpp
- Revision:
- 14:6be57da62283
- Parent:
- 13:a6d3cf2b018e
- Child:
- 15:e3e03a9df89e
--- a/handle/handleCamera.cpp Mon Apr 07 01:30:04 2014 +0000 +++ b/handle/handleCamera.cpp Thu Apr 10 02:19:07 2014 +0000 @@ -3,7 +3,7 @@ void ImageHandle::setup(){ char* version = cam.getVersion(); outputDevice.printf("Version %s\n",version); - uint8_t targetSize=VC0706_640x480; + uint8_t targetSize=VC0706_320x240;//640x480; // 320x240 //VC0706_640x480;//VC0706_160x120; cam.setImageSize(targetSize); @@ -16,6 +16,7 @@ while(1){} } unsigned int sID=getPS().getSuperID(); + getPS().sendPacket(0,NULL,0,PT_EMPTY); getPS().sendPacket(sID,NULL,0,PT_IMAGE); int size=cam.frameLength(); outputDevice.printf("Image Start %d\n",size); @@ -41,6 +42,7 @@ getPS().sendPacket(sID,backBuffer,bloc); outputDevice.printf("Image End\n",size); getPS().sendPacket(sID,NULL,0,PT_END); + cam.resumeVideo(); } bool ImageHandle::check(){ @@ -55,6 +57,7 @@ } if(check()){ take(); - while(true){} + wait(2); + //while(true){} } } \ No newline at end of file