better documentation in config.h, beginning of renaming variables to english

pull/2/head
df8oe 2017-06-09 11:00:58 +02:00
rodzic 6384346fa6
commit c746fee8ff
2 zmienionych plików z 41 dodań i 17 usunięć

Wyświetl plik

@ -9,30 +9,54 @@
#include "config_external.h"
#else
//**************config**************
#define CALLSIGN "DF8OE" // put your callsign here
#define APRS_CALLSIGN "DF8OE-10"
#define APRS_SSID 'B'
//**************config**********************
#define CALLSIGN "DF8OE" // put your RTTY callsign here
#define APRS_CALLSIGN "DF8OE" // put your APRS callsign here
#define APRS_SSID 'B' // put your APRS SSID here
// 0 --> Your primary station usually fixed and message capable
// 1 --> generic additional station, digi, mobile, wx, etc.
// 2 --> generic additional station, digi, mobile, wx, etc.
// 3 --> generic additional station, digi, mobile, wx, etc.
// 4 --> generic additional station, digi, mobile, wx, etc.
// 5 --> Other network sources (Dstar, Iphones, Blackberry's etc)
// 6 --> Special activity, Satellite ops, camping or 6 meters, etc.
// 7 --> walkie talkies, HT's or other human portable
// 8 --> boats, sailboats, RV's or second main mobile
// 9 --> Primary Mobile (usually message capable)
// 10 --> internet, Igates, echolink, winlink, AVRS, APRN, etc.
// 11 --> balloons, aircraft, spacecraft, etc.
// 12 --> APRStt, DTMF, RFID, devices, one-way trackers*, etc.
// 13 --> Weather stations
// 14 --> Truckers or generally full time drivers
// 15 --> generic additional station, digi, mobile, wx, etc.
#define APRS_COMMENT " Hello from the sky!"
#define RTTY_TO_APRS_RATIO 5
#define RTTY_TO_APRS_RATIO 5 //transmit APRS packet with each x RTTY packet
//*************frequency********************
#define RTTY_FREQUENCY 434.500f //Mhz middle frequency
#define APRS_FREQUENCY 432.500f //Mhz middle frequency
//************rtty speed****************** si4032
#define RTTY_SPEED 300
// SHITY -> 450Hz
//************rtty bits****************** si4032
#define RTTY_7BIT 1
//************rtty stop bits****************** si4032
//************rtty speed*********************** si4032
#define RTTY_SPEED 75 // RTTY baudrate
// SHIFT is always 450Hz
//************rtty bits************************ si4032
#define RTTY_7BIT 1 // if 0 --> 5 bits
//************rtty stop bits******************* si4032
#define RTTY_USE_2_STOP_BITS 0
//********* power definition**************************
#define Smoc 7 // PWR 0...7 0- MIN ... 7 - MAX
// 7 -> 42.95 mW@434.150 MHz na E4406A
//***************************************************
#define TX_POWER 0 // PWR 0...7 0- MIN ... 7 - MAX
// 0 --> -8dBm
// 1 --> -5dBm
// 2 --> -2dBm
// 3 --> 1dBm
// 4 --> 4dBm
// 5 --> 7dBm
// 6 --> 10dBm
// 7 --> 13dBm
//****************************************************
// WARNING: do not use this in flying tracker!
#define ALLOW_DISABLE_BY_BUTTON 1
//********** frame delay in msec**********
//********** frame delay in msec**********************
#define tx_delay 5000
#endif

4
main.c
Wyświetl plik

@ -33,7 +33,7 @@ unsigned int send_cun; //frame counter
char status[2] = {'N'};
int napiecie;
volatile char flaga = 0;//((((tx_delay / 1000) & 0x0f) << 3) | Smoc);
volatile char flaga = 0;//((((tx_delay / 1000) & 0x0f) << 3) | TX_POWER);
uint16_t CRC_rtty = 0x12ab; //checksum
char buf_rtty[200];
@ -149,7 +149,7 @@ int main(void) {
radio_set_tx_frequency(RTTY_FREQUENCY);
// Programowanie mocy nadajnika
radio_rw_register(0x6D, 00 | (Smoc & 0x0007), 1);
radio_rw_register(0x6D, 00 | (TX_POWER & 0x0007), 1);
radio_rw_register(0x71, 0x00, 1);
radio_rw_register(0x87, 0x08, 0);