mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-11-17 07:37:16 +00:00
Fix deadlock flowgraph
This commit is contained in:
@@ -62,10 +62,8 @@ struct channel_idle_fsm_S0: public sc::state<channel_idle_fsm_S0, ChannelFsm>
|
||||
public:
|
||||
// sc::transition(event, next state)
|
||||
typedef sc::transition<Ev_channel_start_acquisition, channel_acquiring_fsm_S1> reactions;
|
||||
channel_idle_fsm_S0(my_context ctx) : my_base(ctx)
|
||||
{
|
||||
//std::cout << "Enter Channel_Idle_S0 " << std::endl;
|
||||
}
|
||||
channel_idle_fsm_S0(my_context ctx) : my_base(ctx){}
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -78,13 +76,10 @@ public:
|
||||
|
||||
channel_acquiring_fsm_S1(my_context ctx) : my_base(ctx)
|
||||
{
|
||||
//std::cout << "Enter Channel_Acq_S1 " << std::endl;
|
||||
context<ChannelFsm> ().start_acquisition();
|
||||
}
|
||||
~channel_acquiring_fsm_S1()
|
||||
{
|
||||
//std::cout << "Exit Channel_Acq_S1 " << std::endl;
|
||||
}
|
||||
~channel_acquiring_fsm_S1(){}
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -96,13 +91,11 @@ public:
|
||||
|
||||
channel_tracking_fsm_S2(my_context ctx) : my_base(ctx)
|
||||
{
|
||||
//std::cout << "Enter Channel_tracking_S2 " << std::endl;
|
||||
context<ChannelFsm> ().start_tracking();
|
||||
}
|
||||
|
||||
~channel_tracking_fsm_S2()
|
||||
{
|
||||
//std::cout << "Exit Channel_tracking_S2 " << std::endl;
|
||||
context<ChannelFsm> ().notify_stop_tracking();
|
||||
}
|
||||
|
||||
@@ -117,10 +110,9 @@ public:
|
||||
|
||||
channel_waiting_fsm_S3(my_context ctx) : my_base(ctx)
|
||||
{
|
||||
//std::cout << "Enter Channel_waiting_S3 " << std::endl;
|
||||
context<ChannelFsm> ().request_satellite();
|
||||
}
|
||||
// ~channel_waiting_fsm_S3(){}
|
||||
~channel_waiting_fsm_S3(){}
|
||||
};
|
||||
|
||||
|
||||
@@ -148,7 +140,6 @@ ChannelFsm::ChannelFsm(std::shared_ptr<AcquisitionInterface> acquisition) :
|
||||
void ChannelFsm::Event_start_acquisition()
|
||||
{
|
||||
this->process_event(Ev_channel_start_acquisition());
|
||||
//std::cout<<"Ev_channel_start_acquisition launched"<<std::endl;
|
||||
DLOG(INFO) << "CH = " << channel_ << ". Ev start acquisition";
|
||||
}
|
||||
|
||||
|
||||
@@ -404,7 +404,7 @@ int gps_l1_ca_telemetry_decoder_cc::general_work (int noutput_items __attribute_
|
||||
void gps_l1_ca_telemetry_decoder_cc::set_satellite(const Gnss_Satellite & satellite)
|
||||
{
|
||||
d_satellite = Gnss_Satellite(satellite.get_system(), satellite.get_PRN());
|
||||
LOG(INFO) << "Setting decoder Finite State Machine to satellite " << d_satellite;
|
||||
DLOG(INFO) << "Setting decoder Finite State Machine to satellite " << d_satellite;
|
||||
d_GPS_FSM.i_satellite_PRN = d_satellite.get_PRN();
|
||||
DLOG(INFO) << "Navigation Satellite set to " << d_satellite;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user