mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-09-10 06:46:03 +00:00
run clang-format on ALL the modified files this time
This commit is contained in:
@@ -807,7 +807,7 @@ void pppoutsolstat(rtk_t *rtk, int level, FILE *fp)
|
|||||||
for (j = 0; j < nfreq; j++)
|
for (j = 0; j < nfreq; j++)
|
||||||
{
|
{
|
||||||
fprintf(fp, "$SAT,%d,%.3f,%s,%d,%.1f,%.1f,%.4f,%.4f,%d,%.0f,%d,%d,%d,%d,%d,%d\n",
|
fprintf(fp, "$SAT,%d,%.3f,%s,%d,%.1f,%.1f,%.4f,%.4f,%d,%.0f,%d,%d,%d,%d,%d,%d\n",
|
||||||
week, tow, id.data(), j + 1, ssat->azel[0] * R2D, ssat->azel[1] * R2D,
|
week, tow, id.data(), j + 1, ssat->azel[0] * R2D, ssat->azel[1] * R2D,
|
||||||
ssat->resp[j], ssat->resc[j], ssat->vsat[j], ssat->snr[j] * 0.25,
|
ssat->resp[j], ssat->resc[j], ssat->vsat[j], ssat->snr[j] * 0.25,
|
||||||
ssat->fix[j], ssat->slip[j] & 3, ssat->lock[j], ssat->outc[j],
|
ssat->fix[j], ssat->slip[j] & 3, ssat->lock[j], ssat->outc[j],
|
||||||
ssat->slipc[j], ssat->rejc[j]);
|
ssat->slipc[j], ssat->rejc[j]);
|
||||||
|
@@ -4118,15 +4118,15 @@ int execcmd(const char *cmd)
|
|||||||
* return : none
|
* return : none
|
||||||
* notes : not recursive. only one level
|
* notes : not recursive. only one level
|
||||||
*-----------------------------------------------------------------------------*/
|
*-----------------------------------------------------------------------------*/
|
||||||
void createdir(std::filesystem::path const& path)
|
void createdir(std::filesystem::path const &path)
|
||||||
{
|
{
|
||||||
std::error_code ec;
|
std::error_code ec;
|
||||||
|
|
||||||
auto created = std::filesystem::create_directory(path, ec);
|
auto created = std::filesystem::create_directory(path, ec);
|
||||||
if (not created)
|
if (not created)
|
||||||
{
|
{
|
||||||
trace(1, "Error creating folder: %s", path.c_str());
|
trace(1, "Error creating folder: %s", path.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -59,8 +59,8 @@
|
|||||||
#define GNSS_SDR_RTKLIB_RTKCMN_H
|
#define GNSS_SDR_RTKLIB_RTKCMN_H
|
||||||
|
|
||||||
#include "rtklib.h"
|
#include "rtklib.h"
|
||||||
#include <filesystem>
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
#include <filesystem>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
|
||||||
@@ -230,9 +230,9 @@ void traceobs(int level, const obsd_t *obs, int n);
|
|||||||
// void traceb (int level, const unsigned char *p, int n);
|
// void traceb (int level, const unsigned char *p, int n);
|
||||||
|
|
||||||
int execcmd(const char *cmd);
|
int execcmd(const char *cmd);
|
||||||
void createdir(std::filesystem::path const& path);
|
void createdir(std::filesystem::path const &path);
|
||||||
int reppath(std::string const &path, std::string &rpath, gtime_t time, const char *rov,
|
int reppath(std::string const &path, std::string &rpath, gtime_t time, const char *rov,
|
||||||
const char *base);
|
const char *base);
|
||||||
double satwavelen(int sat, int frq, const nav_t *nav);
|
double satwavelen(int sat, int frq, const nav_t *nav);
|
||||||
double geodist(const double *rs, const double *rr, double *e);
|
double geodist(const double *rs, const double *rr, double *e);
|
||||||
double satazel(const double *pos, const double *e, double *azel);
|
double satazel(const double *pos, const double *e, double *azel);
|
||||||
|
@@ -1976,9 +1976,9 @@ void *ftpthread(void *arg)
|
|||||||
auto proxyopt = std::string();
|
auto proxyopt = std::string();
|
||||||
if (*proxyaddr)
|
if (*proxyaddr)
|
||||||
{
|
{
|
||||||
auto proto = "ftp"s;
|
auto proto = "ftp"s;
|
||||||
if (ftp->proto) proto = "http"s;
|
if (ftp->proto) proto = "http"s;
|
||||||
env = "set "s + proto + "_proxy=http://"s + std::string(proxyaddr) + " % ";
|
env = "set "s + proto + "_proxy=http://"s + std::string(proxyaddr) + " % ";
|
||||||
proxyopt = "--proxy=on ";
|
proxyopt = "--proxy=on ";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2025,7 +2025,7 @@ void *ftpthread(void *arg)
|
|||||||
{
|
{
|
||||||
if (local.extension() == ext)
|
if (local.extension() == ext)
|
||||||
{
|
{
|
||||||
char tmpfile_arg[1024];
|
char tmpfile_arg[1024];
|
||||||
ret = rtk_uncompress(local.c_str(), tmpfile_arg);
|
ret = rtk_uncompress(local.c_str(), tmpfile_arg);
|
||||||
if (ret != 0) // success
|
if (ret != 0) // success
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user