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.
Dependencies: CalibrateMagneto QuaternionMath
Fork of SML2 by
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
Generated on Wed Jul 13 2022 08:50:41 by
