14.11.2012 Views

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 ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

B.1. Microprocessor Code 117<br />

}<br />

* (B[0][1] * B[2][2] - B[2][1] * B[0][2]);<br />

C[1][1] = B[0][0] * B[2][2] - B[2][0] * B[0][2];<br />

C[1][2] = (-1)<br />

* (B[0][0] * B[2][1] - B[2][0] * B[0][1]);<br />

C[2][0] = B[0][1] * B[1][2] - B[1][1] * B[0][2];<br />

C[2][1] = (-1)<br />

* (B[0][0] * B[1][2] - B[1][0] * B[0][2]);<br />

C[2][2] = B[0][0] * B[1][1] - B[1][0] * B[0][1];<br />

for (i = 0; i < 3; i++) {<br />

for (j = 0; j < 3; j++) {<br />

X[i][j] = C[i][j] * x;<br />

}<br />

}<br />

————–definitions.h.——————<br />

/******************** (C) COPYRIGHT 2007 STMicroelectronics ********************<br />

* File Name : definitions.h<br />

* Author : AST Robotics group<br />

* Date First Issued : 11 May 2007 : Version 1.0<br />

* Description : generic definitions and pin assignments file for Dongle.<br />

********************************************************************************<br />

* History:<br />

* 28 May 2007 : Version 1.2<br />

* 11 May 2007 : Version 1.0<br />

*******************************************************************************<br />

THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH<br />

CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.<br />

AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT<br />

OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT<br />

OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION<br />

CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.<br />

*******************************************************************************/<br />

/* Define to prevent recursive inclusion ------------------------------------ */<br />

#ifndef __DEFINITIONS_H<br />

#define __DEFINITIONS_H<br />

// *-------------*-------------*------------*<br />

// | UART2_RxD | N.A. | UART2_RxD |<br />

// | UART2_TxD | N.A. | UART2_TxD |<br />

// | I2C_SCL | P3.4 | SW_I2C_SCL |<br />

// | I2C_SDA | P3.5 | SW_I2C_SDA |<br />

// | CAM_CE | P3.6 | GPIO_OUT |

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!