Submitted version of the thesis - Airlab, the Artificial Intelligence ...
Submitted version of the thesis - Airlab, the Artificial Intelligence ...
Submitted version of the thesis - Airlab, the Artificial Intelligence ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
B.1. Microprocessor Code 95<br />
/* Exported constants --------------------------------------------------------*/<br />
/* Module private variables --------------------------------------------------*/<br />
extern u8 *pImgBufferData;<br />
extern u32 BufferSize;<br />
extern u8 CamState; // 0:Uniitialized, 1:Running, 2:Paused<br />
extern Tx24_ImgJob *CompletedJob;<br />
/* Exported macro ------------------------------------------------------------*/<br />
/* Private functions ---------------------------------------------------------*/<br />
/* Exported functions ------------------------------------------------------- */<br />
void Init_Cam(void);<br />
void GetCompletedJob(void);<br />
void CameraSetParam(u8 ImgFormat , u16 Width, u16 Height,<br />
u8 Framerate , u8 SensorMode, u8 HalfSysClock,<br />
u8 JpegCompr , u8 JpegDerat);<br />
void Init_BlobParameters(void);<br />
#endif /* CAMERA_INIT_H_ */<br />
————–Camera Init.c.——————<br />
/* Standard include ----------------------------------------------------------*/<br />
#include "91x_map.h"<br />
#include "utils.h"<br />
#include "definitions.h"<br />
#include "definitionsLib.h"<br />
#include "CamInt_x24.h"<br />
#include "usb_lib.h"<br />
#include "usb_conf.h"<br />
#include "usb_prop.h"<br />
#include "usb_pwr.h"<br />
#include "usb_config.h"<br />
#include "RGBCube.h"<br />
#include "blobsearch.h"<br />
#include "math.h"<br />
#include "Camera_Init.h"<br />
/* Include <strong>of</strong> o<strong>the</strong>r module interface headers ---------------------------------*/<br />
/* Local includes ------------------------------------------------------------*/<br />
/* Private typedef -----------------------------------------------------------*/<br />
#define BUFFERSIZE_DEMO_BS 160*120*2<br />
/* Private define ------------------------------------------------------------*/<br />
#define TimeDiv 250000000<br />
/* Private macro -------------------------------------------------------------*/<br />
/* Private variables ---------------------------------------------------------*/<br />
const u16 SyncOutPeriods [150] = { 9999, 8332, 7142, 6249,<br />
5555, 4999, 4545, 4166, 3846, 3571, 3333, 3125,<br />
2941, 2777, 2631, 2500, 2381, 2272, 2174, 2083,