Classes | Defines | Functions | Variables
main.h File Reference
#include "util.h"
Include dependency graph for main.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  IMU_CALCDATA
struct  IMU_RAWDATA
struct  SYSTEM_PERMANENT_DATA

Defines

#define BAT_DIV   10
#define BATTERY_WARNING_VOLTAGE   10000
#define CAM_TRIGGERED   0x04
#define CAMER_OFFSET_HUMMINGBIRD   63000
#define ControllerCyclesPerSecond   1000
#define GPS_CONFIG_ERROR   3
#define GPS_IS_CONFIGURED   2
#define GPS_NEEDS_CONFIGURATION   1
#define GPS_STARTUP   0
#define NORMAL   0
#define OFF   0
#define ON   1
#define PD_CAMERACOMMANDS   0x30
#define PD_CTRLCOMMANDS   0x13
#define PD_CTRLINTERNAL   0x14
#define PD_CTRLOUT   0x11
#define PD_CTRLSTATUS   0x16
#define PD_CURRENTWAY   0x21
#define PD_FLIGHTPARAMS   0x12
#define PD_GPSDATA   0x23
#define PD_HLSTATUS   0x04
#define PD_IMUCALCDATA   0x03
#define PD_IMURAWDATA   0x01
#define PD_LLSTATUS   0x02
#define PD_NMEADATA   0x22
#define PD_RCDATA   0x15
#define PD_WAYPOINT   0x20
#define TRIGGER_SERVO_ACTIVE   1800
#define TRIGGER_SERVO_INACTIVE   3600
#define VP_APERTURE_DEC   1000
#define VP_APERTURE_INC   1100
#define VP_LENSCLOSE_SLEEP   1900
#define VP_NEXT_PROFILE   1500
#define VP_PREVIOUS_PROFILE   1400
#define VP_REFOCUS_LOCKFOCUS   1800
#define VP_SHOOT   2000
#define VP_SHUTTER_SPEED_DEC   1200
#define VP_SHUTTER_SPEED_INC   1300
#define VP_ZOOM_IN   1700
#define VP_ZOOM_OUT   1600

Functions

void calibrate (void)
void mainloop (void)
void timer0ISR (void)
void timer1ISR (void)

Variables

unsigned int GPS_cnt_trigger [4]
unsigned char GPS_init_status
volatile unsigned int GPS_timeout
struct IMU_CALCDATA IMU_CalcData IMU_CalcData_tmp
struct IMU_RAWDATA IMU_RawData
volatile char SYSTEM_initialized
struct SYSTEM_PERMANENT_DATA SYSTEM_Permanent_Data

Define Documentation

#define BAT_DIV   10

Definition at line 18 of file main.h.

#define BATTERY_WARNING_VOLTAGE   10000

Definition at line 17 of file main.h.

#define CAM_TRIGGERED   0x04

Definition at line 70 of file main.h.

#define CAMER_OFFSET_HUMMINGBIRD   63000

Definition at line 22 of file main.h.

#define ControllerCyclesPerSecond   1000

Definition at line 24 of file main.h.

#define GPS_CONFIG_ERROR   3

Definition at line 48 of file main.h.

#define GPS_IS_CONFIGURED   2

Definition at line 47 of file main.h.

#define GPS_NEEDS_CONFIGURATION   1

Definition at line 46 of file main.h.

#define GPS_STARTUP   0

Definition at line 45 of file main.h.

#define NORMAL   0

Definition at line 42 of file main.h.

#define OFF   0

Definition at line 39 of file main.h.

#define ON   1

Definition at line 40 of file main.h.

#define PD_CAMERACOMMANDS   0x30

Definition at line 68 of file main.h.

#define PD_CTRLCOMMANDS   0x13

Definition at line 58 of file main.h.

#define PD_CTRLINTERNAL   0x14

Definition at line 59 of file main.h.

#define PD_CTRLOUT   0x11

Definition at line 56 of file main.h.

#define PD_CTRLSTATUS   0x16

Definition at line 61 of file main.h.

#define PD_CURRENTWAY   0x21

Definition at line 64 of file main.h.

#define PD_FLIGHTPARAMS   0x12

Definition at line 57 of file main.h.

#define PD_GPSDATA   0x23

Definition at line 66 of file main.h.

#define PD_HLSTATUS   0x04

Definition at line 54 of file main.h.

#define PD_IMUCALCDATA   0x03

Definition at line 53 of file main.h.

#define PD_IMURAWDATA   0x01

Definition at line 51 of file main.h.

#define PD_LLSTATUS   0x02

Definition at line 52 of file main.h.

#define PD_NMEADATA   0x22

Definition at line 65 of file main.h.

#define PD_RCDATA   0x15

Definition at line 60 of file main.h.

#define PD_WAYPOINT   0x20

Definition at line 63 of file main.h.

#define TRIGGER_SERVO_ACTIVE   1800

Definition at line 20 of file main.h.

#define TRIGGER_SERVO_INACTIVE   3600

Definition at line 21 of file main.h.

#define VP_APERTURE_DEC   1000

Definition at line 37 of file main.h.

#define VP_APERTURE_INC   1100

Definition at line 36 of file main.h.

#define VP_LENSCLOSE_SLEEP   1900

Definition at line 28 of file main.h.

#define VP_NEXT_PROFILE   1500

Definition at line 32 of file main.h.

#define VP_PREVIOUS_PROFILE   1400

Definition at line 33 of file main.h.

#define VP_REFOCUS_LOCKFOCUS   1800

Definition at line 29 of file main.h.

#define VP_SHOOT   2000

Definition at line 27 of file main.h.

#define VP_SHUTTER_SPEED_DEC   1200

Definition at line 35 of file main.h.

#define VP_SHUTTER_SPEED_INC   1300

Definition at line 34 of file main.h.

#define VP_ZOOM_IN   1700

Definition at line 30 of file main.h.

#define VP_ZOOM_OUT   1600

Definition at line 31 of file main.h.


Function Documentation

void calibrate ( void  )

Definition at line 177 of file main.c.

void mainloop ( void  )

Definition at line 170 of file main.c.

void timer0ISR ( void  )

Definition at line 56 of file main.c.

void timer1ISR ( void  )

Definition at line 78 of file main.c.


Variable Documentation

unsigned int GPS_cnt_trigger[4]
unsigned char GPS_init_status

Definition at line 12 of file main.h.

volatile unsigned int GPS_timeout

Definition at line 10 of file main.h.

struct IMU_CALCDATA IMU_CalcData IMU_CalcData_tmp

Definition at line 50 of file main.c.

Definition at line 33 of file main.c.

volatile char SYSTEM_initialized

Definition at line 13 of file main.h.

Definition at line 52 of file main.c.



ccny_asctec_firmware_2
Author(s): Ivan Dryanovski, Roberto G. Valenti
autogenerated on Tue Jan 7 2014 11:04:17