Template for LPC1768

Dependencies:   Gimbal MLX90620 Socket lwip-eth lwip-sys lwip mbed-rtos mbed

Fork of EkkoEye by EkkoSense

base.h

Committer:
gardnmc
Date:
2016-04-14
Revision:
54:aaf6b5ceedd8
Parent:
53:72f350a6d09c

File content as of revision 54:aaf6b5ceedd8:

/*
 * base.h
 *
 *  Created on: 12 Mar 2016
 *      Author: mike
 */

/*
 * Any significant application prototypes and definitions are stored here
 */
#ifndef BASE_H_
#define BASE_H_

#include "CGimbal.h"
#define	ON	1
#define	OFF	0

typedef		struct
{
	float	xAngle;
	float	yAngle;
}ROTATION;

void Pulse();
int init();
int parseServerResponse(char * buffer, CGimbal * pgimbal);
float ReadMLX(void);
void ContactServer(char * data);
void	Rotate(ROTATION rotn);
void	RotateCmd(ROTATION * protn);
void	RotateNoHome(ROTATION rotn);
int	echogets(char* str);
time_t setMcTime(void);
char handleSerial(void);
int ServerLoop(void);
void	Tour(void);
void	xStop(void);
void	Zero(void);
void	Measure(void);

#endif /* BASE_H_ */