/** * Put your configuration settings here. See description of all fields in types.h */ #include "config.h" #include "aprs.h" #include "geofence.h" conf_t conf_sram; const conf_t conf_flash_default = { // Primary position app .pos_pri = { .beacon = { .active = false, .cycle = TIME_S2I(60 * 5), .init_delay = TIME_S2I(60), .fixed = false // Add lat, lon alt fields if enabling fixed }, .radio_conf = { .pwr = 0x7F, .freq = FREQ_APRS_DYNAMIC, .mod = MOD_AFSK, .cca = 0x4F, }, // App identity .call = "VK2GJ-12", .path = "WIDE1-1", .symbol = SYM_ANTENNA, .aprs_msg = true, // Enable APRS message reception on this call sign }, // Secondary position app .pos_sec = { .beacon = { .active = false, .cycle = TIME_S2I(180), .init_delay = TIME_S2I(60), .fixed = false // Add lat, lon alt fields if enabling fixed }, .radio_conf = { .pwr = 0x7F, .freq = 145825000, .mod = MOD_AFSK, .cca = 0xFF }, // App identity .call = "VK2GJ-15", .path = "", .symbol = SYM_BALLOON, .aprs_msg = true, // Enable APRS message reception on this call sign }, // Primary image app .img_pri = { .svc_conf = { .active = true, .cycle = TIME_S2I(60 * 5), .init_delay = TIME_S2I(90), .send_spacing = TIME_S2I(5) }, .radio_conf = { .pwr = 0x7F, .freq = 144800000, .mod = MOD_2FSK, .cca = 0x4F }, // App identity .call = "VK2GJ-15", .path = "", // Image settings .res = RES_VGA, .quality = 4, .buf_size = 40 * 1024, .redundantTx = false }, // Secondary image app .img_sec = { .svc_conf = { .active = true, .cycle = TIME_S2I(60 * 15), .init_delay = TIME_S2I(60 * 1), .send_spacing = TIME_S2I(30) }, .radio_conf = { .pwr = 0x7F, .freq = APRS_FREQ_AUSTRALIA, .mod = MOD_AFSK, .cca = 0x4F }, // App identity .call = "VK2GJ-12", .path = "", // Image settings .res = RES_QVGA, .quality = 4, .buf_size = 15 * 1024, .redundantTx = false }, // Log app .log = { .svc_conf = { .active = false, .cycle = TIME_S2I(10), .init_delay = TIME_S2I(5) }, .radio_conf = { .pwr = 0x7F, .freq = FREQ_APRS_DYNAMIC, .mod = MOD_AFSK, .cca = 0x4F }, // Node identity .call = "VK2GJ-13", .path = "WIDE1-1", .density = 10 }, // APRS app .aprs = { // The receive identity for APRS .rx = { .svc_conf = { // The packet receive service is enabled if true // Receive is paused and resumed by transmission .active = true, .init_delay = TIME_S2I(20) }, // Receive radio configuration .radio_conf = { .freq = FREQ_APRS_DYNAMIC, .mod = MOD_AFSK, .rssi = 0x3F }, // APRS identity used in message responses if digipeat is not enabled .call = "VK2GJ-4", .symbol = SYM_ANTENNA }, .aprs_msg = false, // Set true to enable messages to be accepted on RX call sign .digi = true, .tx = { // Transmit radio configuration .radio_conf = { .freq = FREQ_APRS_RECEIVE, .pwr = 0x7F, .mod = MOD_AFSK, .cca = 0x4F }, // Digipeat transmission identity .call = "VK2GJ-5", .path = "WIDE2-1", .symbol = SYM_DIGIPEATER, .beacon = { // The telemetry beacon service is enabled if true when RX and DIGI are enabled // Receive is resumed after any transmission .active = true, .init_delay = TIME_S2I(20), .cycle = TIME_S2I(60 * 30), // Beacon interval .fixed = true, // Use fixed position data if true .lat = -337331175, // Degrees (expressed in 1e-7 form) .lon = 1511143478, // Degrees (expressed in 1e-7 form) .alt = 144 // Altitude in metres }, }, }, // Global controls // Power control .keep_cam_switched_on = false, .gps_on_vbat = 3600, // mV .gps_off_vbat = 3400, // mV .gps_onper_vbat = 4000, // mV // GPS altitude model control (air pressure controlled using on-board BME280) .gps_pressure = 90000, // Air pressure (Pa) threshold for alt model switch .gps_low_alt = GPS_STATIONARY, .gps_high_alt = GPS_AIRBORNE_1G, // APRS // How often to send telemetry config .tel_enc_cycle = TIME_S2I(60 * 60 * 2), // The default APRS frequency when geofence is not resolved .freq = APRS_FREQ_AUSTRALIA, // The base station identity. .base = { // If enabled tracker initiated APRS messages are addressed to this call sign .enabled = true, .call = "VK2GJ-7", .path = "WIDE2-1", }, .magic = CONFIG_MAGIC_DEFAULT // Do not remove. This is the activation bit. };