- Dec 22, 2018
-
-
Julian Oes authored
When `connect()` fails, the state of the socket is unspecified and we need to close the it and create it again. It turns out retrying connect worked on Linux but it didn't on macOS.
-
Julian Oes authored
This fixes the build on macOS.
-
Julian Oes authored
This fixes the SITL speedup for macOS.
-
Julian Oes authored
-
Julian Oes authored
-
Julian Oes authored
-
Julian Oes authored
-
Julian Oes authored
This adds the env variable PX4_SIM_SPEED_FACTOR to set the speed factor to run SITL at.
-
Julian Oes authored
Without setting the device_id, the preflight checks fail because the calibration is not found.
-
Julian Oes authored
-
Julian Oes authored
This switches from UDP to TCP to connect to jMAVSim.
-
Julian Oes authored
This adds the option to connect over UDP or TCP for mavlink to the SITL simulator. Also, this includes a bunch of general cleanup and refactoring of the simulator interface code. For instance sending of mavlink messages was put into separate functions and unneccessary comments were removed. Also, this now sets the timestamp sent by the SITL simulator in the HIL_SENSOR message in order to enable lockstep.
-
Julian Oes authored
-
Julian Oes authored
-
Julian Oes authored
When we poll on vehicle_local_position we shouldn't do yet another orb_check but copy it first up.
-
Julian Oes authored
-
Julian Oes authored
-
Julian Oes authored
These functions won't be used any longer with the new implementation.
-
Julian Oes authored
-
Julian Oes authored
This fixes a race/lockup happening in the DriverFramework scheduler.
-
Julian Oes authored
-
Julian Oes authored
-
Julian Oes authored
We shouldn't be using module here.
-
Julian Oes authored
-
Julian Oes authored
This is required so that the SITL simulator receives a feedback from PX4.
-
Julian Oes authored
-
Julian Oes authored
This uses the "fake" px4_sem based on mutex and condition_variable on all POSIX system, not just macOS and Cygwin. This means that we can change px4_sem_timedwait under the hood and inject the simulated time.
-
Julian Oes authored
This integrates the lockstep_scheduler, so that the system time is set by the mavlink HIL_SENSOR message. This means that the speed factor is removed and the speed is entirely given by the simulator.
-
Julian Oes authored
-
Julian Oes authored
-
Julian Oes authored
-
Julian Oes authored
-
Julian Oes authored
-
Julian Oes authored
-
Julian Oes authored
This should be enough for now, especially when we want to raise the speed of the simulation.
-
Julian Oes authored
This is just an intermediate step until we can copy the sources over.
-
Julian Oes authored
-
Julian Oes authored
These contains some rough changes trying to get SITL to speed up by a SPEED_FACTOR. This platform time code probably requires some more thought and refactor but this gets a demo at 4x working.
-
Julian Oes authored
This adds the argument -f for a speed factor to speed up the simulation.
-
Julian Oes authored
This is another step to isolate time from the system.
-