Add support for radarcape type 5 (receiver position) messages.

This commit is contained in:
Oliver Jowett 2016-12-27 19:07:10 +00:00
parent 5063efe064
commit 4bb070be50
5 changed files with 135 additions and 4 deletions

View file

@ -111,6 +111,13 @@ static void end_cpu_timing(const struct timespec *start_time, struct timespec *a
add_to->tv_nsec = add_to->tv_nsec % 1000000000L;
}
void receiverPositionChanged(float lat, float lon, float alt)
{
log_with_timestamp("Autodetected receiver location: %.5f, %.5f at %.0fm AMSL", lat, lon, alt);
writeJsonToFile("receiver.json", generateReceiverJson); // location changed
}
//
// =============================== Initialization ===========================
//