N4 Flight Software N4
Flight software used for the N4 flight computers
Loading...
Searching...
No Matches
defs.h
Go to the documentation of this file.
1
6#ifndef DEFS_H
7#define DEFS_H
8
9#include <Arduino.h>
10
14#define MQTT 1
15#define XBEE 1
17#define GPS_BAUD_RATE 9600
18#define XBEE_BAUD_RATE 9600
20/* debug parameters for use during testing - set to 0 for production */
21#define DEBUGGING 1
22#define LOG_TO_MEMORY 0
23#define DEBUG_TO_TERMINAL 1
25#if DEBUGGING
26#define debug(x) Serial.print(x)
27#define debugln(x) Serial.println(x)
28#define debugf(x, y) Serial.printf(x, y)
29#else
30#define debug(x)
31#define debugln(x)
32#define debugf(x, y)
33#endif // DEBUG
34
35/* end of debug parameters */
36
37/* timing constant */
38#define SETUP_DELAY 300
39#define TASK_DELAY 10
40
42#define MAIN_EJECTION_HEIGHT 1000
43#define DROGUE_EJECTION_HEIGHT
44#define SEA_LEVEL_PRESSURE 101325
45#define BASE_ALTITUDE 1417
48#define STACK_SIZE 2048
49#define ALTIMETER_QUEUE_LENGTH 10
50#define GYROSCOPE_QUEUE_LENGTH 10
51#define GPS_QUEUE_LENGTH 24
52#define TELEMETRY_DATA_QUEUE_LENGTH 10
53#define FILTERED_DATA_QUEUE_LENGTH 10
54#define FLIGHT_STATES_QUEUE_LENGTH 1
56/* MQTT constants */
57const char MQTT_SERVER[20] = "192.168.78.19";
58const char MQTT_TOPIC[20] = "n4/telemetry";
59#define MQTT_PORT 1882
61#define BROKER_IP_ADDRESS_LENGTH 20
62#define MQTT_TOPIC_LENGTH 10
64/* WIFI credentials */
65// const char* SSID = "Galaxy"; /*!< WIFi SSID */
66// const char* PASSWORD = "luwa2131"; /*!< WiFi password */
67
68#define CALLIBRATION_READINGS 200
70#define GPS_TX 17
71#define GPS_RX 16
73#endif // DEFS_H
74
const char MQTT_SERVER[20]
Definition defs.h:57