Commit Graph

10071 Commits

Author SHA1 Message Date
Daniel Agar 2a1ecaa13e sensors reduce priority of a failed sensor 2017-10-29 16:24:31 +01:00
Daniel Agar e5ead354f0 EKF2 reset IMU bias if the accel or gyro changes 2017-10-29 16:24:31 +01:00
Julian Oes 6d8d6323cb navigator: bring follow me back to life
The function `mission_item_to_position_setpoint()` is called in
`FollowTarget::update_position_sp()`. The nav_cmd is a
NAV_CMD_DO_FOLLOW_REPOSITION as set earlier in `set_follow_target_item`.

Since `mission_item_to_position_setpointi` returns early because the item
presumably contains no position, the lat/lon of the mission_item are
not copied over to the position_setpoint and therefore the vehicle will
never move in follow me position mode.
2017-10-29 12:58:00 +01:00
Julian Oes 10de946cdf navigator: remove leftover debug variable 2017-10-29 12:58:00 +01:00
Beat Küng 9b85b39c07 syslink_main: fix int type passed to param_get() 2017-10-27 10:43:15 +02:00
Beat Küng a2fd9ef2d0 PreflightCheck: use correct type for params (int -> int32_t) 2017-10-27 10:43:15 +02:00
Beat Küng 207fdc0f12 mc_att_control_main: use correct type for params (int -> int32_t) 2017-10-27 10:43:15 +02:00
Beat Küng c3b47b71de temperature_compensation: use correct type for params (int -> int32_t) 2017-10-27 10:43:15 +02:00
Beat Küng 96616d831e sensors: fix parameter type int -> int32_t 2017-10-27 10:43:15 +02:00
Beat Küng 8a693fa13d param: undefine CHECK_PARAM_TYPE after it's used 2017-10-27 10:43:15 +02:00
Beat Küng dbb0414e01 commander: remove unused SYS_AUTOSTART param 2017-10-27 10:43:15 +02:00
Beat Küng 8cbd772489 commander: fix wrong parameter types (these are defined as float, not int) 2017-10-27 10:43:15 +02:00
Beat Küng d74f792784 commander: fix type passed to param_get() 2017-10-27 10:43:15 +02:00
Beat Küng f9dedd627f camera_feedback: fix type passed to param_get() 2017-10-27 10:43:15 +02:00
Beat Küng 530fdb0b61 arm_auth: make type passed to param_get() explicit 2017-10-27 10:43:15 +02:00
Beat Küng 861f5a3d11 mag_calibration: fix type passed to param_get() 2017-10-27 10:43:15 +02:00
Beat Küng 0dcf9775f1 LandDetector: make type passed to param_get() explicit 2017-10-27 10:43:15 +02:00
Beat Küng 41a4d07e4f logger: make type passed to param_get() explicit 2017-10-27 10:43:15 +02:00
Beat Küng c997698030 mavlink: fix type passed to param_get() 2017-10-27 10:43:15 +02:00
Beat Küng 07d7b29729 simulator_mavlink: fix type passed to param_get() 2017-10-27 10:43:15 +02:00
Beat Küng c35b0aa270 param: redefine type-safe versions for param_get() when used in C++ code 2017-10-27 10:43:15 +02:00
Daniel Agar 4416c4ddb3 navigator move parameters out of MissionBlock
- MissionBlock is an interface with > 10 implementations
2017-10-26 22:43:53 +02:00
ChristophTobler 8e457b6037 reset setpoint to current position
avoid abrupt position changes as the delta can be quite big depending on deadreckoning/imu
2017-10-26 21:36:36 +02:00
Daniel Agar 48cfb37c5a move bottle_drop to examples (#8187) 2017-10-25 16:05:39 -04:00
TSC21 2a2d968b2c modules: lpe: fix double correction on lidar 2017-10-25 19:39:33 +01:00
Beat Küng 8ec59f0bc9 status_display: remove unused vehicle_attitude topic 2017-10-24 13:15:14 +02:00
ChristophTobler 9be8d6acc9 add subscriber handler and status displays 2017-10-24 13:15:14 +02:00
Finwood ba11e0dc44 use tabs for indentation 2017-10-22 22:05:56 +02:00
Lasse e2a359143d use altitude acceptance radius for MC takeoff check
When checking a mission, the takeoff altitude is being checked
against the waypoint acceptance radius to ensure the MAV being
clear from ground before heading to the next waypoint.
However, until now the _horizontal_ acceptance radius was being
used, instead of the altitude reference value.

Targets PX4/Firmware/#7379
2017-10-22 22:05:56 +02:00
Daniel Agar a133b12635 delete fw_pos_control_l1/mtecs 2017-10-22 21:56:06 +02:00
Paul Riseborough 3fc7aba178 TECS: Use version in ECL library
This change updates a number of interfaces to use the new TECS implementation from the ECL library.
2017-10-22 21:56:06 +02:00
Lorenz Meier 4923d0cba3 Remove TECS from system codebase
The TECS controller belongs really into the ECL (estimation & control library) where we have collected a number of vehicle control systems. It is being replaced by a new implementation of the algorithm, contributed by Paul Riseborough.
2017-10-22 21:56:06 +02:00
DonLakeFlyer 8693c51cba Fix bad meta data 2017-10-21 20:17:41 +02:00
Paul Riseborough c9f44531c2 logger: Add logging profile to support comparison of multiple sensors (#8134) 2017-10-20 09:30:55 -04:00
ChristophTobler d7c8d53489 use get() for BlockParam 2017-10-18 11:08:58 +02:00
ChristophTobler 40b8d8bd48 use distance to ground if on ground an distance is out of range 2017-10-18 11:08:58 +02:00
Julian Oes 787931f04f navigator: check distances between waypoints
Instead of just checking whether the first waypoint is too far away from
home it makes sense to also check between waypoints.
This can prevent
- flyaways due to user errors, or
- catch the corner case where a takeoff waypoint is added to a mission
  and therefore the first waypoint is not too far away, however, the
  subsequent waypoints are still too far away.
2017-10-18 08:42:20 +02:00
Beat Küng 8b797d9b05 logger: use int for loop counter 2017-10-18 08:40:32 +02:00
Beat Küng d930ad4e9e mavlink_orb_subscription: reduce orb_exists() check from 10Hz to 3Hz
Checking with 3Hz for new topics should be fast enough.
2017-10-18 08:40:32 +02:00
Beat Küng 7381ea8222 logger: remove unused topics commander_state & rc_channels
flight review now uses vehicle_status & manual_control_setpoint
2017-10-18 08:40:32 +02:00
Beat Küng deaf125c81 logger: check for newly published topics while not logging
If logger is started very early, orb_exists() will fail for a lot of
topics, they will be advertised within the next few seconds.
Logger already dynamically adds subscriptions during logging, but if we
do that before as well, we'll avoid any delays and having to subscribe
to a lot of topics all at once.
2017-10-18 08:40:32 +02:00
Beat Küng 3be252289a logger: use orb_exists to check if we need to subscribe to the first instance
To keep track of the configured interval, we store it as negative file
descriptor, until we do the subscription.

This frees up a considerable amount of file descriptors in most use-cases.
2017-10-18 08:40:32 +02:00
Beat Küng 4c4b528842 uORBManager: fix code style 2017-10-18 08:40:32 +02:00
Beat Küng 2f2c0440c4 orb_exists: change semantics from (is published or subscribed) to (is published)
Existing users of orb_exists:
- logger (dynamic subscribe to multi-instances)
- mavlink (orb subscription)
- sdlog2
- preflightcheck (check for home_position)
- wait_for_topic shell command (it's not used)
- orb_group_count() (sensors: dynamic sensor addition)

All use-cases benefit from the changed semantics: they are really only
interested if there is a publisher, not another subscriber.
2017-10-18 08:40:32 +02:00
Daniel Agar d83073f016 move RTPS to dedicated px4fmu-v{3,4,4pro,5}, posix, sdflight builds (#8113) 2017-10-17 16:29:55 -04:00
Matthias Grob e12bfa30d4 mc_att_control: defualt parameters set maximal acro rates to 2/1.5 turns per second for roll,pitch/yaw 2017-10-17 16:54:16 +02:00
Matthias Grob 8b09eaf124 mc_att_control: use SuperExpo input curve for acro mode to further enhance the stick feel 2017-10-17 16:54:16 +02:00
Matthias Grob 3ce5525b7c mc_att_control: use expo input for acro mode to allow for high input rates without loosing input sensitivity 2017-10-17 16:54:16 +02:00
Beat Küng 291872a28d mavlink: fix flight_information: use COM_FLIGHT_UUID instead of the board id
The board id was used as flight id which does not make sense.
2017-10-17 09:56:01 +02:00
Beat Küng 85e82dca0d commander: add COM_FLIGHT_UUID param, increased upon disarm 2017-10-17 09:56:01 +02:00