#include "helpers2.h"
#include "fap.h"
#include "regs.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <regex.h>
#include <ctype.h>
#include <math.h>
Go to the source code of this file.
Functions | |
void | fapint_clear_llist (fapint_llist_item_t *list) |
Cleanup function for linked list. | |
double | fapint_get_pos_resolution (int const minute_digit_count) |
Return position resolution in meters based on the number of minute decimal digits. | |
int | fapint_parse_symbol_from_dst_callsign (fap_packet_t *packet) |
Parse station symbol from GPSxyz or SPCxyz -formatted destination callsign. | |
int | fapint_symbol_from_dst_type (char input[2], char *output) |
Maps destination callsign symbol chars to APRS symbol. | |
int | fapint_is_number (char const *input) |
Returns 0 if string contains non-numeric chars, 1 if not. | |
int | fapint_check_date (unsigned int year, unsigned int month, unsigned int day) |
Returns 1 if given date is valid. */. | |
int | fapint_get_nmea_latlon (fap_packet_t *packet, char *field1, char *field2) |
Get coordinate from nmea fields. |
Definition in file helpers2.c.
double fapint_get_pos_resolution | ( | int const | minute_digit_count | ) |
Return position resolution in meters based on the number of minute decimal digits.
Also accepts negative numbers, i.e. -1 for 10 minute resolution and -2 for 1 degree resolution. Calculation is based on latitude so it is worst case (resolution in longitude gets better as you get closer to the poles).
Definition at line 56 of file helpers2.c.
int fapint_symbol_from_dst_type | ( | char | input[2], | |
char * | output | |||
) |
Maps destination callsign symbol chars to APRS symbol.
Contains a list of mappings from GPSxyz (or SPCxyz) to APRS symbols. Overlay characters (z) are not handled here.
input | Two chars from destination callsign. | |
output | Two chars ([0] and [1]) of aprs symbol. |
Definition at line 185 of file helpers2.c.
int fapint_get_nmea_latlon | ( | fap_packet_t * | packet, | |
char * | field1, | |||
char * | field2 | |||
) |
Get coordinate from nmea fields.
Field 2 is used to decide between latitude and longitude. If pos_resolution is not set, this will set it too.
packet | Results are saved here. | |
field1 | The (dd)dmm.m(mmm..) string. | |
field2 | The north/south or east/west indicator. |
Definition at line 403 of file helpers2.c.