- May 22, 2019
-
-
Matthias Grob authored
There are two local_position_setpoint in the position controller. One describing the setpoint the task gives to the position controller and a second one with the output of the position controller. I corrected the wrong one during takeoff because the new takeoff thrust ramp runs after the controller and not before.
-
Matthias Grob authored
In a deterministic way with clear states to go through.
-
Matthias Grob authored
The velocity ramp had problems with: - different vehicle tunings resulted in the start value of the resulting thrust ramp staring either higher and lower than zero thrust. lower -> delay of beginning higher -> small jump at beginning - when a task set position and velocity at the same time during takeoff (which AutoSmoothVel does) it resulted in a velocity setpoint jump at the end of the ramp because the additional velocity setpoint correction from the position controller was not considered. The thrust ramp should now be very deterministic: - always start at zero - always end at the curreant thrust setpoint output of the complete position controller
-
bresch authored
AutoSmoothVel - Override checkTakeoff with task-specific logic and reactivate z axis with downward velocity to takeoff smoothly
-
Matthias Grob authored
-
Matthias Grob authored
The initial idea of the flight task architecture was that a task can freely set it's setpoints and doesn't have to worry about takeoff and landing. It would just takeoff when it's landed and there's a setpoint to go up and land when it puts a setpoint that pushes into the ground. With the takeoff logic there are some significant interface problems depending on the way a task is implemented: From the setpoint is not high enough to trigger to an unexpected takeoff because of some estimator fluctuation affecting the setpoint. It's easiest to solve this by allowing the task to determine when a takeoff is triggered. If no condition is implemented by default a task is not allowing a takeoff and cannot be used to get the vehicle off the ground.
-
Matthias Grob authored
After boot the user is in manual mode and if he has an RC but doesn't switch out the thrust gets set to the throttle stick position. When he then starts a takeoff from tablet the thrust is still high while arming and the land detector immediately sees a takeoff skiping smooth takeoff from the position controller.
-
Matthias Grob authored
according to @dagar's review comment.
-
Matthias Grob authored
-
Matthias Grob authored
- start from a velocity setpoint pushing into the ground to ramp from idle thrust up. - start with a bit higher velocity setpoint threshold to make sure the vehicle has a chance to really get off the ground. - calculate ramp slope from initialization setpoint to the desired one instead from zero to the desired. this ramps up quicker when you demand a very small upwards velocity like the AutoLineSmoothVel and ManualPositionSmoothVel tasks do at the beginning. - don't stay in the takeoff ramp depending on the land detector, this is unnecessary.
-
Matthias Grob authored
The comments and variable names were partly misleading. I grouped all members, hopefully gave them more understandable names and adjusted the comments.
-
Matthias Grob authored
There were two rather confusing function calls one to check if smooth takeoff needs to be ran and one that updates it. I combined them and documented the interface correctly making the parameters non-reference const floats.
-
TSC21 authored
-
TSC21 authored
microRTPS_transport: use preprocessor declarations to setup different build contexts for client and agent code
-
TSC21 authored
-
TSC21 authored
-
TSC21 authored
-
TSC21 authored
RTPS IDL: fix const names; make IDL template similar to rosidl_generator_dds_idl/resource/msg.idl.em
-
- May 20, 2019
-
-
Daniel Agar authored
-
Daniel Agar authored
-
Julian Oes authored
This tries to make the visibility.h header clearer and better structured. We don't actually need the ifdef for lockstep enabled or disabled because that's now handled elsewhere.
-
Julian Oes authored
-
Julian Oes authored
This define was not set anyway, and in my opinion we should not use different code for tests anyway.
-
Julian Oes authored
This makes sure we add the lockstep_scheduler_test even if the ENABLE_LOCKSTEP_SCHEDULER is not set to yes. This means the lockstep_scheduler is not used for SITL but the CMakeLists.txt file still used and the test added.
-
Julian Oes authored
-
Daniel Agar authored
-
- May 17, 2019
-
-
David Sidrane authored
-
Timothy Scott authored
* Added Aion R1 airframe * Tuned PID values for Aion R1 * Changed to generic mixer and cleaned up configuration
-
bresch authored
-
Mathieu Bresciani authored
Co-Authored-By:
Matthias Grob <maetugr@gmail.com>
-
bresch authored
Add jerk parameter for auto mode MPC_JERK_AUTO. Specify when a parameter is only used in a certain manual or auto mode
-
Beat Küng authored
timeout is an int, so it wraps when the poll timeout is >2147ms. This happened in logger, resulting in poll never returning.
-
- May 16, 2019
-
-
Julian Oes authored
For now we need to ignore this warning which GCC 9 shows for the MAVLink headers.
-
Julian Oes authored
GCC 9 complained about stringop-truncation which is a cautionary message to prevent using strncpy with non-null terminated strings. We can fix this by copying one byte less than the destination size and then manually adding the null termination, as we already do.
-
TSC21 authored
-
Matthias Grob authored
Since I reorder the points every time I open a pull request I thought I might as well propose this order for the template.
-
- May 14, 2019
-
-
Julian Oes authored
-
Julian Oes authored
When simulating with lockstep we can raise the speed by setting the env variable `PX4_SIM_SPEED_FACTOR`. Some inputs like RC, MAVLink heartbeats from a ground station, or offboard controls via MAVLink are still at the normal speed which leads to timeouts getting detected in PX4. To work around this issue we can automatically multiply the timeout parameters by the speed factor.
-
- May 13, 2019
-
-
Daniel Agar authored
- fixes #12012
-
Julian Oes authored
This fixes the IDs of multi UAVs started with ROS/Gazebo. Previously the 3 vehicles were displayed in QGC as Vehicle 2, 3, 4. With this change it is more intuitive Vehicle 1, 2, 3 and this is also consistent with the way it is documented and how it is in jMAVSim.
-