|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Picture Snapshots
Quote:
how do you save the images to the cRIO? |
|
#2
|
||||
|
||||
|
Re: Picture Snapshots
Quote:
Here is just the snapshot function, not entirely sure what includes it needs however. Code:
/**
* Store an image on the cRIO
* @param imageName stored on home directory of cRIO ( "/" )
**/
void snapshot(char* imageName)
{
/* this will take one picture and save it to a file
*/
DPRINTF(LOG_DEBUG, "taking a SNAPSHOT ");
Image* cameraImage = frcCreateImage(IMAQ_IMAGE_HSL);
if (!cameraImage) {
dprintf (LOG_INFO,"frcCreateImage failed - errorcode %i",GetLastVisionError());
}
Wait(1.0);
if ( !GetImage (cameraImage,NULL) ) {
dprintf (LOG_INFO,"\nCamera Acquisition failed %i", GetLastVisionError());
} else {
if (!frcWriteImage(cameraImage, imageName) ) {
dprintf (LOG_INFO,"frcWriteImage failed - errorcode %i",GetLastVisionError());
} else {
dprintf (LOG_INFO,"\n>>>>> Saved image to %s", imageName);
// always dispose of image objects when done
frcDispose(cameraImage);
}
}
}
Code:
Status: Connecting to 10.15.2.2:20... Status: Connection attempt failed with "ECONNREFUSED - Connection refused by server". Error: Could not connect to server Status: Waiting to retry... Last edited by 3DWolf : 09-02-2009 at 16:33. |
|
#3
|
||||
|
||||
|
Re: Picture Snapshots
try ftp://10.15.02.2/ (assuming your team 1502)
|
|
#4
|
||||
|
||||
|
Re: Picture Snapshots
Quote:
|
|
#5
|
||||
|
||||
|
Re: Picture Snapshots
If you can download code to it you should be able to ftp to it through a web browser (you use ftp to load code on it in the first place)
Just make sure your robot is configured correctly and everything (it should be) |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Picture Software | Rob2713g | Computer Graphics | 18 | 29-01-2007 18:43 |
| no picture | thefreakfrom974 | Programming | 0 | 11-02-2005 19:09 |
| Picture Game | GregTheGreat | Chit-Chat | 13 | 11-12-2003 23:15 |
| Picture | Luke H. | CD Forum Support | 2 | 08-12-2001 03:33 |
| picture | David Kelly | Chit-Chat | 9 | 06-09-2001 22:06 |