Record gps lat, lon, satinuse from recorder app if there was gps signal. (#1992)

* Record gps lat, lon, satinuse from recorder app if there was gps signal.

* Add _GEO to filename that has geotag
This commit is contained in:
Totoo 2024-03-15 14:56:20 +01:00 committed by GitHub
parent 181624daf1
commit 9e40e38f07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 90 additions and 6 deletions

View file

@ -29,6 +29,9 @@
struct capture_metadata {
rf::Frequency center_frequency;
uint32_t sample_rate;
float latitude = 0;
float longitude = 0;
uint8_t satinuse = 0;
};
std::filesystem::path get_metadata_path(const std::filesystem::path& capture_path);
@ -36,4 +39,5 @@ std::filesystem::path get_metadata_path(const std::filesystem::path& capture_pat
Optional<File::Error> write_metadata_file(const std::filesystem::path& path, capture_metadata metadata);
Optional<capture_metadata> read_metadata_file(const std::filesystem::path& path);
bool parse_float_meta(std::string_view str, float& out_val);
#endif // __METADATA_FILE_HPP__