2025-02-22 11:36:55 +00:00
/* MAIN CONFIG FILE FOR THIS PROJECT */
# ifndef INC_CONFIG_H_
# define INC_CONFIG_H_
/*-----------------------------------------------------------------*/
// Sonde configuration, parameters that should be changed
2025-10-20 20:29:07 +00:00
# define TIME_PERIOD 12 // Time betwen starts of transmissions (in seconds) (must be more than 3)
2025-02-22 11:36:55 +00:00
2025-10-19 20:36:48 +00:00
// Horus Binary V2 4FSK mode
2025-11-03 10:04:40 +00:00
# define HORUS_ENABLE 1
2025-02-22 11:36:55 +00:00
2025-10-21 18:17:22 +00:00
const static float QRG_FSK4 [ ] = { 435100000 } ; // 4FSK transmitted frequencies array, switched in a loop, add new frequencies (in Hz) after a comma in braces. Commonly used frequencies: https://github.com/projecthorus/horusdemodlib/wiki#commonly-used-frequencies
2025-10-19 20:36:48 +00:00
# define FSK4_POWER 10 // RF power setting for horus transmission values 0-63
2025-07-23 13:28:26 +00:00
2025-10-21 18:17:22 +00:00
# define HORUS_PAYLOAD_ID 256 // Sonde payload ID 256 - for 4FSKTEST-V2, change this for real flight, refer to https://github.com/projecthorus/horusdemodlib/wiki#how-do-i-transmit-it
2025-02-22 11:36:55 +00:00
2025-10-19 20:36:48 +00:00
# define FSK4_BAUD 100 // Baudrate for horus 4FSK
# define FSK4_SPACE_MULTIPLIER 1 // Tone spacing multiplier - 1 for 244Hz, 2 for 488, etc.
# define FSK4_HEADER_LENGTH 8 // Length in bytes of 4FSK header
2025-02-22 11:36:55 +00:00
2025-10-19 20:36:48 +00:00
// APRS (AX.25 AFSK HDLC Bell 202)
# define APRS_ENABLE 1
2025-03-08 20:17:58 +00:00
2025-10-21 18:17:22 +00:00
const static float QRG_AFSK [ ] = { 435100000 } ; // AFSK transmitted frequencies array, switched in a loop, add new frequencies (in Hz) after a comma in braces.
# define AFSK_POWER 10 // RF power setting AFSK transmission values 0-63
2025-10-18 20:35:00 +00:00
2025-10-21 20:39:35 +00:00
# define APRS_CALLSIGN "NOCALL" // Sonde callsign, max 6 digits, change this for your callsign for real flight
2025-10-21 18:17:22 +00:00
# define APRS_SSID 11 // Sonde SSID, 11 is "balloons, aircraft, spacecraft, etc", refer to https://www.aprs.org/aprs11/SSIDs.txt
2025-10-18 20:35:00 +00:00
2025-10-22 18:07:52 +00:00
# define APRS_DESTINATION "APRM20" // Destination adress, characterizing a M20 transmitter, max 6 digits
2025-10-21 18:17:22 +00:00
# define APRS_DESTINATION_SSID 0 // Default 0 SSID
2025-10-19 20:36:48 +00:00
2025-10-21 18:17:22 +00:00
# define APRS_PATH_1 "WIDE1" // Path 1, max 6 digits
# define APRS_PATH_1_SSID 1 // Path 1 SSID
2025-10-19 11:52:46 +00:00
2025-10-21 18:17:22 +00:00
# define APRS_PATH_2 "WIDE2" // Path 2, max 6 digits
# define APRS_PATH_2_SSID 1 // Path 2 SSID
2025-10-18 20:35:00 +00:00
2025-10-21 18:17:22 +00:00
# define APRS_SYMBOL " / O" // baloon symbol, all symbols: https://www.aprs.org/symbols.html, needs to be /O for showing on Sondehub
2025-10-18 22:08:55 +00:00
2025-10-21 18:17:22 +00:00
# define APRS_COMMENT_TELEMETRY 1 // Telemetry in coment field
2025-10-19 11:52:46 +00:00
2025-10-21 18:17:22 +00:00
# define APRS_COMMENT_TEXT "M20 radiosonde test" // Additional text in comment field
2025-10-19 11:52:46 +00:00
2025-10-19 20:36:48 +00:00
// LED settings
2025-10-20 21:30:21 +00:00
# define LED_MODE 2 // 0 - disabled, 1 - flashes when prepairing tx data before transmit, 2 - GPS fix indication
2025-10-19 20:36:48 +00:00
# define LED_PERIOD 5 // time between LED lighting
# define LED_DISABLE_ALT 1000 // disable led when certain altitude is reached, 0 for always enable
2025-07-31 18:12:19 +00:00
2025-10-19 20:36:48 +00:00
// Radio settings
2025-10-25 16:13:27 +00:00
# define RF_BOOST 1 // RF booster enabled for transmissions about 15dB gain, but more power consumed - normally should be ON(1).
2025-02-22 11:36:55 +00:00
2025-10-19 20:36:48 +00:00
# define ADF_FREQ_CORRECTION 19 // correction of frequency from crystal inaccuracy in 244Hz steps. To be individually set for each sonde.
# define ADF_FSK_DEVIATION 5 // Deviation parameter used in AFSK modem, don't change it without a reason, 5= about 5k5Hz, 10=11kHz
2025-02-22 11:36:55 +00:00
# define ADF_CLOCK 8000000 // Clock speed of adf7012 chip coming from STM32 (in Hz) (set to HSE 8MHz oscilator)
2025-10-19 20:36:48 +00:00
// GPS configuration
# define GPS_TYPE 1 // Type of GPS module: 1 - u-blox | 2 - XM1110
2025-02-22 11:36:55 +00:00
2025-10-19 20:36:48 +00:00
# define GPS_WATCHDOG 1 // Enable GPS watchdog
# define GPS_WATCHDOG_ARC 180 // Time of GPS watchdog after restart counter, how much time (in s) the module has for getting a fix after a restart before next one
//#define GPS_WATCHDOG_MAX_D_TIME 10 // Max GPS time deviation (in s) from last frame
//#define GPS_WATCHDOG_ASCENTRATE 100 // Ascent rate value triggering restart
2025-02-22 11:36:55 +00:00
2025-03-28 20:06:25 +00:00
# define AscentRateTime TIME_PERIOD / 2 // Time of ascent rate mesure
2025-02-22 11:36:55 +00:00
2025-10-19 20:36:48 +00:00
# define LPS22_ENABLE 1
2025-02-22 11:36:55 +00:00
2025-10-19 20:36:48 +00:00
# define NTC_ENABLE 1
2025-02-22 11:36:55 +00:00
2025-10-19 20:36:48 +00:00
# define BAT_ADC_ENABLE 1
2025-02-22 11:36:55 +00:00
2025-10-29 16:52:28 +00:00
// Debug
2025-10-21 18:17:22 +00:00
# define DEBUG 0
2025-10-29 16:52:28 +00:00
# define GPS_DEBUG 0
2025-02-22 11:36:55 +00:00
# endif /* INC_CONFIG_H_ */