platforms: remove old lockstep functionality

These functions won't be used any longer with the new implementation.
This commit is contained in:
Julian Oes 2018-11-13 15:05:23 +01:00
parent 14642edfda
commit 4ef0d74ea3
3 changed files with 0 additions and 37 deletions

View File

@ -522,30 +522,4 @@ extern "C" {
pthread_mutex_unlock(&devmutex);
}
void px4_enable_sim_lockstep()
{
px4_sem_init(&lockstep_sem, 0, 0);
// lockstep_sem use case is a signal
px4_sem_setprotocol(&lockstep_sem, SEM_PRIO_NONE);
sim_lockstep = true;
sim_delay = false;
}
void px4_sim_start_delay()
{
sim_delay = true;
}
void px4_sim_stop_delay()
{
sim_delay = false;
}
bool px4_sim_delay_enabled()
{
return sim_delay;
}
} // extern "C"

View File

@ -590,12 +590,6 @@ out:
bool
uORB::DeviceNode::appears_updated(SubscriberData *sd)
{
/* block if in simulation mode */
while (px4_sim_delay_enabled()) {
px4_usleep(100);
}
/* assume it doesn't look updated */
bool ret = false;

View File

@ -108,11 +108,6 @@ __EXPORT int px4_fsync(int fd);
__EXPORT int px4_access(const char *pathname, int mode);
__EXPORT px4_task_t px4_getpid(void);
__EXPORT void px4_enable_sim_lockstep(void);
__EXPORT void px4_sim_start_delay(void);
__EXPORT void px4_sim_stop_delay(void);
__EXPORT bool px4_sim_delay_enabled(void);
__END_DECLS
#else
#error "No TARGET OS Provided"