Skip to content

simulation time overflows after ~35 minutes, px4 crashes. #73

@hackingsmacking

Description

@hackingsmacking

Hi,

I noticed that PX4 starts behaving incorrectly after ~35 minutes of simulation when using the JSBSim bridge.
It seems that the sensor timestamp is defined as int32_t:

void SendSensorMessages(int time_usec);

After ~35 minutes, time_usec overflows, which appears to cause timing-related issues in PX4.

I tested changing this to uint64_t, and this allows the simulation to run much longer without problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions