forked from df8oe/RS41HUP
-
Notifications
You must be signed in to change notification settings - Fork 9
/
config.h
133 lines (106 loc) · 4.88 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
//
// Created by SQ5RWU on 2016-12-24.
// Modified by VK5QI in 2018-ish
//
#ifndef RS41HUP_CONFIG_H
#define RS41HUP_CONFIG_H
#ifdef USE_EXTERNAL_CONFIG
#include "config_external.h"
#else
//************GLOBAL Settings*****************
#define TRANSMIT_FREQUENCY 434.200f //Mhz middle frequency
#define BAUD_RATE 100 // RTTY & MFSK Baud rate.
// NOTE: Currently supported MFSK baud rates with horus-gui are 50 and 100 baud,
// with the suggested MFSK baud rate being 100 baud.
// Modulation Types - Comment out a line below to enable/disable a modulation.
//#define RTTY_ENABLED 1
#define MFSK_4_ENABLED 1
//*************RTTY SETTINGS******************
#define CALLSIGN "N0CALL" // put your RTTY callsign here, max. 15 characters
#define RTTY_DEVIATION 0x3 // RTTY shift = RTTY_DEVIATION x 270Hz
#define RTTY_7BIT 1 // if 0 --> 5 bits
#define RTTY_USE_2_STOP_BITS 1
//************MFSK Binary Settings************
// Binary Payload ID (0 though 255) - For your own flights, you will need to request a payload ID,
// and set this value to that.
// Refer to the payload ID list here: https://github.com/projecthorus/horusdemodlib/blob/master/payload_id_list.txt
// Payload IDs can be reqested by either raising an Issue, or a Pull Request on https://github.com/projecthorus/horusdemodlib/
// An ID of 0 ('4FSKTEST') can be used for on-ground testing, but DO NOT use this for a flight!!!
#define BINARY_PAYLOAD_ID 0 // Payload ID for use in Binary packets
// TX Power
#define TX_POWER 5 // PWR 0...7 0- MIN ... 7 - MAX
// Power Levels measured at 434.650 MHz, using a Rigol DSA815, and a 10 kHz RBW
// Power measured by connecting a short (30cm) length of RG316 directly to the
// antenna/ground pads at the bottom of the RS41 PCB.
// 0 --> -1.9dBm
// 1 --> 1.3dBm
// 2 --> 3.6dBm
// 3 --> 7.0dBm
// 4 --> 10.0dBm
// 5 --> 13.1dBm - DEFAULT
// 6 --> 15.0dBm
// 7 --> 16.3dBm
// *********** Power Saving ******************
//
// Power Consumption Notes (all @ 3V):
// - GPS Max Performance, Transmitting @ 13 dBm = ~150 mA
// - GPS Max Performance, Not Transmitting = 70-90mA
// - GPS in PowerSave Mode, Transmitting @ 13 dBm = ~120 mA
// - GPS in PowerSave Mode, not Transmitting = 30-50mA, depending on GPS state.
// If enabled, transmit incrementing tones in the 'idle' period between packets.
// This will only function if ONLY MFSK is enabled.
// Note, you need to COMMENT this line out to disable this, not just set it to 0
#define CONTINUOUS_MODE 1
// Delay *between* transmitted packets (milliseconds)
// If you only have MFSK_4 enabled, and MFSK_CONTINUOUS (below) is disabled,
// Then the transmitter will turn off between transmissions. This saves about 50mA of power consumption.
// The maximum TX_DELAY is 65535*(1000/BAUD_RATE), so about 655.35 seconds for 100 baud
#define TX_DELAY 1000
// If defined, transmit a short 20ms 'pip' between transmissions every X milliseconds.
// This number needs to be smaller than TX_DELAY
// Comment out the line to disable this.
//#define TX_PIP 5000
// Number of symbols to transmit the pip for.
// At 100 baud, each symbol is 10ms
#define TX_PIP_SYMBOLS 5
// Enable uBlox PowerSave Mode
// Drops current consummption from the GPS somewhat.
// Positional accuracy may be slightly impacted. Suggest not using this for short flights.
// Flight-tested on 2020-12.
//#define UBLOX_POWERSAVE 1
// *********** Morse Ident **********************
// If uncommented, send a morse code ident every X transmit cycles, to comply
// with amateur radio regulations, if operating under an amateur radio license.
// With continuous 4FSK transmissions, 100 transmit cycles is approx 5 minutes.
//#define MORSE_IDENT 100
// Morse message to send.
#define MORSE_MESSAGE "N0CALL"
// Speed of morse transmission
#define MORSE_WPM 30
// *********** Deep Sleep Mode ******************
// Deep Sleep Mode intended for long duration flights only!
//
// Notes:
// - Only have MFSK transmissions enabled.
// - Disable continuous mode.
// - Disable GPS powersave mode.
//
// Power consumption in sleep mode = 32mA @ 3V
//
// In this mode, the GPS is turned into a sleep mode in between transmissions.
// During this sleep period, we sent one 'pip' every few seconds.
// At the end of the sleep period, the GPS is powered back up, and we await the GPS
// to obtain a fix before transmitting our position. While waiting for GPS lock, we
// send a 'double pip'.
// Go to sleep for X minutes between transmissions.
// In this time, the GPS will be completely powered down.
// If defined, sleep for this many minutes between transmissions.
//#define DEEP_SLEEP 2
// Send a short pip every X milliseconds to let people know the transmitter is running.
#define DEEP_SLEEP_PIPS 10000
//***********Other Settings ******************
// Switch sonde ON/OFF via Button
// If this is a flight you might prevent sonde from powered off by button
#define ALLOW_DISABLE_BY_BUTTON 0
#endif
#endif //RS41HUP_CONFIG_H