Bremen Team - Hangar / SML2

Dependencies:   CalibrateMagneto QuaternionMath

Fork of SML2 by TobyRich GmbH

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers CherryCam.h Source File

CherryCam.h

00001 #ifndef _H_CHERRYCAM_H
00002 #define _H_CHERRYCAM_H
00003 
00004 #include "mbed.h"
00005 
00006 /// Manages the camera used on the CarbonFlyer
00007 class CherryCam
00008 {
00009 public:
00010     CherryCam();            ///< Constructor
00011 
00012     void powerOn();         ///< Turn the camera power on. Takes 10-12 sec to boot up.
00013     void powerOff();        ///< Turn the camera power off.
00014     void start();           ///< Start video recording. Camera power must be on.
00015     void stop();            ///< Stop the video recording.
00016 
00017 private:
00018     void generateFallingEdge();
00019     void pulldownShutterPin();
00020     DigitalOut powerPin;
00021     DigitalOut shutterPin;
00022     Timeout pulldownTimer;
00023     bool recording;
00024 };
00025 
00026 #endif//_H_CHERRYCAM_H