mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-21 04:37:37 +00:00
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:
@@ -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__
|
Reference in New Issue
Block a user