Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 56 lines (45 sloc) 1.298 kb
d74996f6 » Zuph
2011-02-11 first git update in too long, lots of bug fixes
1 //*****************************************************************************
2 //
3 // File Name : 'dataStructuures.h'
4 // Title : Data Structures for Balloon project
5 // Original Author : Brad Luyster, LVL1 White Star Balloon Project
6 // Created : 2010.12.2
7 // Modified : I won't keep up with this
8 // Target MCU : Atmel AVR series
9 //
10 // http://www.whitestarballoon.com/
11 //
12 // This code is distributed under the GNU Public License
13 // which can be found at http://www.gnu.org/licenses/gpl.txt
14 //
15 //*****************************************************************************
16
17 #ifndef DATASTRUCTURES_H
18 #define DATASTRUCTURES_H
19
20 #define SAMPLESTRINGSIZEINCHARS 225 //Size of a sample string as stored in the open log
21 //In chars (or bytes), including the terminating \r\n
22
23 #define MAXTXSAMPLESIZE 150
24
3b798745 » Zuph
2011-03-20 Almost flight ready, I've been negligent in updating.
25 #define COMMPROMSIZE 32767
d74996f6 » Zuph
2011-02-11 first git update in too long, lots of bug fixes
26
27 typedef void (*scheduledFunction)(uint32_t);
28
29 struct dataSample
30 {
31 uint32_t epochSampled;
32 uint16_t flightComputerTemperature;
33 uint32_t barometricPressure;
34 //struct gpsData sampleGPS;
3b798745 » Zuph
2011-03-20 Almost flight ready, I've been negligent in updating.
35
d74996f6 » Zuph
2011-02-11 first git update in too long, lots of bug fixes
36 } dataSample;
37
38 struct gpsData
39 {
40 uint8_t status;
41 float latitude;
42 float longitude;
43 uint8_t speed;
44 uint16_t bearing;
45 uint16_t hdop;
46 uint16_t vdop;
47 uint8_t hours;
48 uint8_t minutes;
49 uint8_t seconds;
50 uint16_t altitude;
51 uint8_t numberOfSats;
3b798745 » Zuph
2011-03-20 Almost flight ready, I've been negligent in updating.
52
d74996f6 » Zuph
2011-02-11 first git update in too long, lots of bug fixes
53 } gpsData;
54
55
56 #endif
Something went wrong with that request. Please try again.