mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 20:50:33 +00:00
Remove unrequired include and other minor fixes
This commit is contained in:
parent
088826883b
commit
dfe8dbbea4
@ -150,7 +150,6 @@ void GlonassL1CaPcpsAcquisition::set_threshold(float threshold)
|
|||||||
|
|
||||||
DLOG(INFO) << "Channel " << channel_ << " Threshold = " << threshold_;
|
DLOG(INFO) << "Channel " << channel_ << " Threshold = " << threshold_;
|
||||||
|
|
||||||
|
|
||||||
if (item_type_.compare("cshort") == 0)
|
if (item_type_.compare("cshort") == 0)
|
||||||
{
|
{
|
||||||
acquisition_sc_->set_threshold(threshold_);
|
acquisition_sc_->set_threshold(threshold_);
|
||||||
@ -237,7 +236,6 @@ void GlonassL1CaPcpsAcquisition::init()
|
|||||||
|
|
||||||
void GlonassL1CaPcpsAcquisition::set_local_code()
|
void GlonassL1CaPcpsAcquisition::set_local_code()
|
||||||
{
|
{
|
||||||
|
|
||||||
std::complex<float>* code = new std::complex<float>[code_length_];
|
std::complex<float>* code = new std::complex<float>[code_length_];
|
||||||
|
|
||||||
glonass_l1_ca_code_gen_complex_sampled(code,/* gnss_synchro_->PRN,*/ fs_in_, 0);
|
glonass_l1_ca_code_gen_complex_sampled(code,/* gnss_synchro_->PRN,*/ fs_in_, 0);
|
||||||
|
@ -42,8 +42,6 @@
|
|||||||
#include "pcps_acquisition_cc.h"
|
#include "pcps_acquisition_cc.h"
|
||||||
#include "pcps_acquisition_sc.h"
|
#include "pcps_acquisition_sc.h"
|
||||||
#include "complex_byte_to_float_x2.h"
|
#include "complex_byte_to_float_x2.h"
|
||||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class ConfigurationInterface;
|
class ConfigurationInterface;
|
||||||
|
@ -941,7 +941,7 @@ bool Gnuplot::set_GNUPlotPath(const std::string &path)
|
|||||||
void Gnuplot::set_terminal_std(const std::string &type)
|
void Gnuplot::set_terminal_std(const std::string &type)
|
||||||
{
|
{
|
||||||
#if defined(unix) || defined(__unix) || defined(__unix__) || defined(__APPLE__)
|
#if defined(unix) || defined(__unix) || defined(__unix__) || defined(__APPLE__)
|
||||||
if (type.find("x11") != std::string::npos && getenv("DISPLAY") == NULL)
|
if (type.find("x11") != std::string::npos && std::getenv("DISPLAY") == NULL)
|
||||||
{
|
{
|
||||||
throw GnuplotException("Can't find DISPLAY variable");
|
throw GnuplotException("Can't find DISPLAY variable");
|
||||||
}
|
}
|
||||||
@ -1808,7 +1808,7 @@ void Gnuplot::init()
|
|||||||
// whose name is specified as argument. If the requested variable is not
|
// whose name is specified as argument. If the requested variable is not
|
||||||
// part of the environment list, the function returns a NULL pointer.
|
// part of the environment list, the function returns a NULL pointer.
|
||||||
#if ( defined(unix) || defined(__unix) || defined(__unix__) ) && !defined(__APPLE__)
|
#if ( defined(unix) || defined(__unix) || defined(__unix__) ) && !defined(__APPLE__)
|
||||||
if (getenv("DISPLAY") == NULL)
|
if (std::getenv("DISPLAY") == NULL)
|
||||||
{
|
{
|
||||||
valid = false;
|
valid = false;
|
||||||
throw GnuplotException("Can't find DISPLAY variable");
|
throw GnuplotException("Can't find DISPLAY variable");
|
||||||
@ -1885,7 +1885,7 @@ bool Gnuplot::get_program_path()
|
|||||||
//
|
//
|
||||||
char *path;
|
char *path;
|
||||||
// Retrieves a C string containing the value of environment variable PATH
|
// Retrieves a C string containing the value of environment variable PATH
|
||||||
path = getenv("PATH");
|
path = std::getenv("PATH");
|
||||||
|
|
||||||
if (path == NULL)
|
if (path == NULL)
|
||||||
{
|
{
|
||||||
@ -1894,7 +1894,7 @@ bool Gnuplot::get_program_path()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::list<std::string> ls;
|
std::list<std::string> ls;
|
||||||
std::string path_str = path;
|
std::string path_str(path);
|
||||||
|
|
||||||
//split path (one long string) into list ls of strings
|
//split path (one long string) into list ls of strings
|
||||||
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__TOS_WIN__)
|
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__TOS_WIN__)
|
||||||
@ -2007,10 +2007,9 @@ std::string Gnuplot::create_tmpfile(std::ofstream &tmp)
|
|||||||
{
|
{
|
||||||
std::ostringstream except;
|
std::ostringstream except;
|
||||||
except << "Maximum number of temporary files reached ("
|
except << "Maximum number of temporary files reached ("
|
||||||
<< GP_MAX_TMP_FILES << "): cannot open more files" << std::endl;
|
<< GP_MAX_TMP_FILES << "): cannot open more files" << std::endl;
|
||||||
|
|
||||||
throw GnuplotException( except.str() );
|
throw GnuplotException( except.str() );
|
||||||
return "";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// int mkstemp(char *name);
|
// int mkstemp(char *name);
|
||||||
|
Loading…
Reference in New Issue
Block a user