1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-16 05:00:35 +00:00

Apply project's coding style

This commit is contained in:
Carles Fernandez 2018-01-17 19:02:52 +01:00
parent 1b5a3b6fa4
commit 7e97d00a4f

View File

@ -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); return (a.TOW_at_current_symbol_s) < (b);
} }
void hybrid_observables_cc::forecast (int noutput_items __attribute__((unused)), gr_vector_int &ninput_items_required) 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++) for(unsigned int i = 0; i < d_nchannels; i++)
{ {
int items=detail()->input(i)->items_available(); int items=detail()->input(i)->items_available();
if (items>0) zero_samples=false; if (items>0) zero_samples = false;
ninput_items_required[i] = items; //set the required available samples in each call 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++) 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 , int hybrid_observables_cc::general_work (int noutput_items ,
gr_vector_int &ninput_items, gr_vector_int &ninput_items,
gr_vector_const_void_star &input_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++) 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++) for (int j = 0; j < n_consume[i]; j++)
{ {
d_gnss_synchro_history_queue[i].push_back(in[i][j]); d_gnss_synchro_history_queue[i].push_back(in[i][j]);