mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 12:40:35 +00:00
Apply project's coding style
This commit is contained in:
parent
1b5a3b6fa4
commit
7e97d00a4f
@ -325,26 +325,28 @@ bool Hybrid_valueCompare_gnss_synchro_d_TOW(const Gnss_Synchro& a, double b)
|
||||
return (a.TOW_at_current_symbol_s) < (b);
|
||||
}
|
||||
|
||||
|
||||
void hybrid_observables_cc::forecast (int noutput_items __attribute__((unused)), gr_vector_int &ninput_items_required)
|
||||
{
|
||||
|
||||
bool zero_samples=true;
|
||||
bool zero_samples = true;
|
||||
for(unsigned int i = 0; i < d_nchannels; i++)
|
||||
{
|
||||
int items=detail()->input(i)->items_available();
|
||||
if (items>0) zero_samples=false;
|
||||
ninput_items_required[i] = items; //set the required available samples in each call
|
||||
if (items>0) zero_samples = false;
|
||||
ninput_items_required[i] = items; // set the required available samples in each call
|
||||
}
|
||||
|
||||
if (zero_samples==true)
|
||||
if (zero_samples == true)
|
||||
{
|
||||
for(unsigned int i = 0; i < d_nchannels; i++)
|
||||
{
|
||||
ninput_items_required[i] = 1; //set the required available samples in each call
|
||||
ninput_items_required[i] = 1; // set the required available samples in each call
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int hybrid_observables_cc::general_work (int noutput_items ,
|
||||
gr_vector_int &ninput_items,
|
||||
gr_vector_const_void_star &input_items,
|
||||
@ -369,7 +371,7 @@ int hybrid_observables_cc::general_work (int noutput_items ,
|
||||
*/
|
||||
for (unsigned int i = 0; i < d_nchannels; i++)
|
||||
{
|
||||
n_consume[i] = ninput_items[i];// full throttle
|
||||
n_consume[i] = ninput_items[i]; // full throttle
|
||||
for (int j = 0; j < n_consume[i]; j++)
|
||||
{
|
||||
d_gnss_synchro_history_queue[i].push_back(in[i][j]);
|
||||
|
Loading…
Reference in New Issue
Block a user