mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-14 07:47:35 +08:00
posix lockstep remove HRT offset and use full sim time
This commit is contained in:
@@ -235,11 +235,6 @@ __EXPORT extern void hrt_call_delay(struct hrt_call *entry, hrt_abstime delay);
|
||||
*/
|
||||
__EXPORT extern void hrt_init(void);
|
||||
|
||||
#ifdef __PX4_POSIX
|
||||
|
||||
__EXPORT extern hrt_abstime hrt_absolute_time_offset(void);
|
||||
|
||||
#endif
|
||||
#if defined(ENABLE_LOCKSTEP_SCHEDULER)
|
||||
|
||||
__EXPORT extern int px4_lockstep_register_component(void);
|
||||
|
||||
@@ -119,7 +119,7 @@ void SimulatorMavlink::actuator_controls_from_outputs(mavlink_hil_actuator_contr
|
||||
{
|
||||
memset(msg, 0, sizeof(mavlink_hil_actuator_controls_t));
|
||||
|
||||
msg->time_usec = hrt_absolute_time() + hrt_absolute_time_offset();
|
||||
msg->time_usec = hrt_absolute_time();
|
||||
|
||||
bool armed = (_vehicle_status.arming_state == vehicle_status_s::ARMING_STATE_ARMED);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user