ASCEND Flight Software
Loading...
Searching...
No Matches
PayloadConfig.h
Go to the documentation of this file.
1
10#ifndef PAYLOAD_CONFIG_H
11#define PAYLOAD_CONFIG_H
12
13#include <Wire.h>
14
16#define ERROR_PIN_2 22
18#define ERROR_PIN_1 15
20#define ERROR_PIN_0 14
21
23// #define MTK3339_CS_PIN 20
24#define SERIAL2_RX_PIN 9
25#define SERIAL2_TX_PIN 8
26#define GPS_I2C 1
27
29// [1, 1, 1, 0, 1, A1, A0]
30#define UV_I2C_ADDR 0x74
31
33#define OZONE_I2C_ADDR 0x73
34
36#define I2C1_SDA_PIN 10
37#define I2C1_SCL_PIN 11
38
40#define TMP117_I2C_ADDR 0x48
41
43#define STRATOSENSE_I2C Wire1
44
46#define STRATOCORE_I2c Wire
47
48// storages
50#define STORING_PACKETS 1
51
52// for radio
54#define RADIO_NSS 1
55#define RADIO_DIO0 2
56#define RADIO_RESET 0
57#define RADIO_DIO1 3
58#define RADIO_TX_ENABLE 26
59#define RADIO_RX_ENABLE 27
60
61#define RADIO_FREQ 915.0
62#define RADIO_BW 125.0
63#define RADIO_SF 9
64#define RADIO_CR 7
65#define RADIO_SYNC_WORD RADIOLIB_SX127X_SYNC_WORD
66#define RADIO_POWER 17
67#define RADIO_PREAMBLE_LEN 8
68#define RADIO_GAIN 0
69
71#define RADIO_SPI SPI
72
73// spi1
75#define SPI1_MISO_PIN 12
77#define SPI1_SCK_PIN 14
79#define SPI1_MOSI_PIN 15
80
82#define SD_SPI1 0
84#define SD_CS_PIN 17
85
87#define FLASH_SPI1 1
89#define FLASH_CS_PIN 13
90
91// main pin definitions
93#define ON_BOARD_LED_PIN 25
95#define HEARTBEAT_PIN_0 21
97#define HEARTBEAT_PIN_1 20
98
99// multicore transfer queue
100#define QT_ENTRY_SIZE 500
101#define QT_MAX_SIZE 10
102
103// packet properties
104const uint8_t SYNC_BYTES[] = {'A', 'S', 'U', '!'};
105
106// temporary toggle macros for testing
107#define PACKET_SYSTEM_TESTING 1
108
109#endif
const uint8_t SYNC_BYTES[]
Definition PayloadConfig.h:104