kopia lustrzana https://github.com/DL7AD/pecanpico10
198 wiersze
5.6 KiB
C
198 wiersze
5.6 KiB
C
/**
|
|
* 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 = true,
|
|
.cycle = TIME_S2I(120),
|
|
.init_delay = TIME_S2I(0),
|
|
.fixed = false // Add lat, lon, alt fields when enabling fixed
|
|
},
|
|
.radio_conf = {
|
|
.pwr = 0x7F,
|
|
.freq = FREQ_GEOFENCE,
|
|
.mod = MOD_AFSK,
|
|
.cca = 0x5F,
|
|
},
|
|
// App identity
|
|
.call = "DL7AD-15",
|
|
.path = "WIDE1-1",
|
|
.symbol = SYM_BALLOON,
|
|
.aprs_msg = true, // Enable APRS message reception on this app
|
|
},
|
|
|
|
// Secondary position app
|
|
.pos_sec = {
|
|
.beacon = {
|
|
.active = false,
|
|
.cycle = TIME_S2I(60 * 30), // Beacon interval
|
|
.init_delay = TIME_S2I(60),
|
|
.fixed = true, // Add lat, lon alt fields when enabling fixed
|
|
.lat = -337331175, // Degrees (expressed in 1e-7 form)
|
|
.lon = 1511143478, // Degrees (expressed in 1e-7 form)
|
|
.alt = 144 // Altitude in metres
|
|
},
|
|
.radio_conf = {
|
|
.pwr = 0x7F,
|
|
.freq = FREQ_GEOFENCE,
|
|
.mod = MOD_AFSK,
|
|
.cca = 0x4F
|
|
},
|
|
// App identity
|
|
.call = "DL7AD-5",
|
|
.path = "WIDE2-1",
|
|
.symbol = SYM_DIGIPEATER,
|
|
.aprs_msg = false, // Enable APRS message reception on this app
|
|
},
|
|
|
|
// Primary image app
|
|
.img_pri = {
|
|
.svc_conf = {
|
|
.active = true,
|
|
.cycle = CYCLE_CONTINUOUSLY,
|
|
.init_delay = TIME_S2I(30),
|
|
.send_spacing = TIME_S2I(10)
|
|
},
|
|
.radio_conf = {
|
|
.pwr = 0x7F,
|
|
.freq = FREQ_GEOFENCE,
|
|
.mod = MOD_AFSK,
|
|
.cca = 0x5F
|
|
|
|
},
|
|
// App identity
|
|
.call = "DL7AD-15",
|
|
.path = "",
|
|
|
|
// Image settings
|
|
.res = RES_QVGA,
|
|
.quality = 4,
|
|
.buf_size = 50 * 1024,
|
|
.redundantTx = false
|
|
},
|
|
|
|
// Secondary image app
|
|
.img_sec = {
|
|
.svc_conf = {
|
|
.active = false,
|
|
.cycle = TIME_S2I(60 * 15),
|
|
.init_delay = TIME_S2I(15 * 1),
|
|
.send_spacing = TIME_S2I(2)
|
|
},
|
|
.radio_conf = {
|
|
.pwr = 0x1F,
|
|
.freq = FREQ_APRS_AUSTRALIA,
|
|
.mod = MOD_AFSK,
|
|
.cca = 0x4F
|
|
},
|
|
// App identity
|
|
.call = "DL7AD-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_GEOFENCE,
|
|
.mod = MOD_AFSK,
|
|
.cca = 0x4F
|
|
},
|
|
// Node identity
|
|
.call = "DL7AD-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 = false,
|
|
.init_delay = TIME_S2I(20)
|
|
},
|
|
// Receive radio configuration
|
|
.radio_conf = {
|
|
.freq = FREQ_GEOFENCE,
|
|
.mod = MOD_AFSK,
|
|
.rssi = 0x3F
|
|
},
|
|
// APRS identity used in message responses if digipeat is not enabled
|
|
.call = "DL7AD-4",
|
|
.symbol = SYM_ANTENNA
|
|
},
|
|
.aprs_msg = false, // Set true to enable messages to be accepted on RX call sign
|
|
.digi = false,
|
|
.tx = {
|
|
// Transmit radio configuration
|
|
.radio_conf = {
|
|
.freq = FREQ_RX_APRS,
|
|
.pwr = 0x7F,
|
|
.mod = MOD_AFSK,
|
|
.cca = 0x4F
|
|
},
|
|
// Digipeat transmission identity
|
|
.call = "DL7AD-5",
|
|
.path = "WIDE2-1",
|
|
.symbol = SYM_DIGIPEATER,
|
|
// A digipeater beacon can be added using one of the POS apps
|
|
// Set the POS identity the same as the dipipeater TX identity
|
|
// Alternatively the digipeater can have its own .beacon entry here
|
|
},
|
|
},
|
|
|
|
// 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 (global for beacons)
|
|
.tel_enc_cycle = TIME_S2I(60 * 60 * 2),
|
|
|
|
// The default APRS frequency when geofence is not resolved
|
|
.freq = FREQ_APRS_EUROPE,
|
|
|
|
// The base station identity.
|
|
.base = {
|
|
// If enabled tracker initiated APRS messages are addressed to this call sign
|
|
.enabled = false,
|
|
.call = "DL7AD-7",
|
|
.path = "WIDE2-1",
|
|
},
|
|
|
|
.magic = CONFIG_MAGIC_DEFAULT // Do not remove. This is the activation bit.
|
|
};
|