forked from Trapsat1/Trap_Sat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCameraMod.h
35 lines (31 loc) · 977 Bytes
/
CameraMod.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
Author: Zach Richard
Date: 05/19/2014
Project: Trap Sat: Capitol College
This library will be used to take and store pictures using the Arduino YUN and a USB webcam.
To do so, the YUN must have UVC camera support and the program fswebcam installed.
If not installed, you can run while the YUN is connected to the internet:
$ opkg update
$opkg install kmod-video-uvc
$opkg install fswebcam
*/
#ifndef CameraMod_h
#define CameraMod_h
// Headers:
#include <Arduino.h>
#include <Bridge.h>
#include <Process.h>
#include <FileIO.h>
class CameraMod
{
private:
String filename; // Name of the file.
String location; // Location to be saved
public:
CameraMod();
void SetName(String); // used to set the name of the picture
void SetDir(String); // used to set the directory where the file should be stored
void TakePic();
String GetPic(); // Will return the full directory path, including the name of the file
};
#endif