Commit Graph

17330 Commits

Author SHA1 Message Date
Dennis Mannhart 3c40aa0d9c PositionControl: if valid velocity and position setpoint available, always prioritize
velocity setpoint generated from position error over velocity feedforward
2018-07-20 09:26:18 +02:00
Dennis Mannhart 5551021d23 FlightTaskAutoLine: check if yaw_wp is finite 2018-07-20 09:26:18 +02:00
Dennis Mannhart 558a0f892c PositionControl: auto takeoff with constant speed
PositionControl: remove takeoff logic

mc_pos_control: takeoff logic for flighttask

mc_pos_control: smooth takeoff throttle start at 0
2018-07-20 09:26:18 +02:00
Dennis Mannhart 6e62beb560 FlightTaskAuto: abstract class for mapping triplets to quadruple
FlightTaskAuto: add type that corresponds to triplet type

FligthTaskAuto: set all setpoints if invalid in xy

FlightTaskAuto: cast triplet type to WaypointType

FlightTaskAutoLine: class for px4 legacy auto

FlightTaskAutoLine: methods prototype

FlightTaskAuto: change sp to wp (=Waypoint)
add params

FlightTaskAutoLine: follow waypoints along line based on flight state
2018-07-20 09:26:18 +02:00
DanielePettenuzzo ee9a336d62 add PX4_I2C_BUS_EXPANSION2 support in px4flow driver 2018-07-19 09:31:51 +02:00
Martina 24413c6192 mavlink_messages: rename MavlinkStreamTrajectory -> MavlinkStreamTrajectoryRepresentationWaypoints 2018-07-18 05:12:39 -04:00
Martina c9d27b65ef mavlink_main: stream trajetcory_presententation_waypoints instead of trajectory 2018-07-18 05:12:39 -04:00
Martina 02d360c33a update trajectory message to trajectory_representation_waypoint as in mavlink 2018-07-18 05:12:39 -04:00
Beat Küng c166ea9ed5 sensors: fix potential busy loop when a gyro driver is stopped
When a gyro driver is stopped, the topic is unadvertised and
orb_group_count() returns a smaller count. This can have the effect, that
we poll on a certain gyro fd, but since _gyro.subscription_count is reduced
we never do the orb_copy for that fd.

This cannot happen when armed. And only someone playing with the shell
can trigger it (sensor failures do not have that effect).
2018-07-18 08:10:13 +02:00
Beat Küng 891a09f488 sensors: make sure to do an orb_copy, even if a gyro is disabled
This makes sure that poll() never returns immediately.
accel & mag are only updated to keep the code in sync.
2018-07-18 08:10:13 +02:00
Beat Küng 28d70f5f79 logger: remove unneeded topics from the default set
Should some of these be of interest to someone, we should create a profile.
2018-07-18 08:10:13 +02:00
Daniel Agar 50b5e124d5 cmake fix BUILD_URI 2018-07-17 21:03:27 -04:00
Daniel Agar 8985403c00 FMU relocate MOT_SLEW_MAX and THR_MDL_FAC parameters centrally 2018-07-17 19:59:41 -04:00
Daniel Agar c26ca49f36 PWM parameters centralize under sensors and add aux 7&8 2018-07-17 19:59:41 -04:00
Daniel Agar 24d742ed51 FMU PWM parameters respect instance for MAIN/AUX usage 2018-07-17 19:59:41 -04:00
David Sidrane 6f665aee55 board_common:Update description to include paramater. 2018-07-17 08:53:29 +02:00
David Sidrane a7a1607689 fmu & px4io:Use uORB Publish Auto 2018-07-17 08:53:29 +02:00
David Sidrane 33c9459ebe fmu:Use extended board_supports_single_wire APU with UxART 2018-07-17 08:53:29 +02:00
David Sidrane d0d361ef92 sbus:Add comment that turning off the single wire has not effect 2018-07-17 08:53:29 +02:00
David Sidrane ec73e73934 px4fmu-v5:Support board_supports_single_wire query by UxART 2018-07-17 08:53:29 +02:00
David Sidrane ab49b42f1c board_common:Extend board_supports_single_wire API to use UxART_BASE 2018-07-17 08:53:29 +02:00
David Sidrane b6d01c36af px4fmu-v5:Support RX TX swap 2018-07-17 08:53:29 +02:00
David Sidrane 8076b103bc px4fmu-v5:Provide RC_UXART_BASE to use board_common UxART based INVERT_RC_INPUT 2018-07-17 08:53:29 +02:00
David Sidrane 7dfd26cd8f nxphlite-v3:Provide RC_UXART_BASE to use board_common UxART based INVERT_RC_INPUT 2018-07-17 08:53:29 +02:00
David Sidrane f48481fcbd fmu:Use extended rc_io_invert API with UxART 2018-07-17 08:53:29 +02:00
David Sidrane c291566c3e fmu:Remove gpio config on GPIO_SBUS_INV it is done in board_init 2018-07-17 08:53:29 +02:00
David Sidrane 8cc358dff8 px4fmu-v5:extend board_rc_input to pass UxART 2018-07-17 08:53:29 +02:00
David Sidrane bf36d272bf nxphlite-v3:extend board_rc_input to pass UxART 2018-07-17 08:53:29 +02:00
David Sidrane 70a453f148 px4nucleoF767ZI-v1:Provide board_common INVERT_RC_INPUT with GPIO based invert 2018-07-17 08:53:29 +02:00
David Sidrane 28a669a637 px4fmu-v4pro:Provide board_common INVERT_RC_INPUT with GPIO based invert 2018-07-17 08:53:29 +02:00
David Sidrane 05b9b5e533 px4fmu-v4:Provide board_common INVERT_RC_INPUT with GPIO based invert 2018-07-17 08:53:29 +02:00
David Sidrane 407fe692d8 mindpx-v2:Provide board_common INVERT_RC_INPUT with GPIO based invert 2018-07-17 08:53:29 +02:00
David Sidrane 9fc37606fd tap-v1:Use board_common default nop INVERT_RC_INPUT 2018-07-17 08:53:29 +02:00
David Sidrane 3debee9563 aerofc-v1:Use board_common default nop INVERT_RC_INPUT 2018-07-17 08:53:29 +02:00
David Sidrane b08a0d50f8 aerocore2:Use board_common default nop INVERT_RC_INPUT 2018-07-17 08:53:29 +02:00
David Sidrane c57928343c Create INVERT_RC_INPUT default usages 2018-07-17 08:53:29 +02:00
David Sidrane cba7410e49 fmu:Use board_supports_single_wire when calling sbus_config 2018-07-17 08:53:29 +02:00
David Sidrane 7ea592016e px4fmu-v5:Use board_supports_single_wire
This is a stubbed out version that will rely on the hardware
   manifest moving forward.
2018-07-17 08:53:29 +02:00
David Sidrane 13a972cfe6 px4fmu-v5:Add place holder for hardware manifest 2018-07-17 08:53:29 +02:00
David Sidrane d986c14591 board_common:add board_supports_single_wire API 2018-07-17 08:53:29 +02:00
Paul Riseborough 4e3f7bdcc6 ekf2: Move range min/max checks to inside the ecl library 2018-07-16 21:59:04 +10:00
Philipp Oettershagen da2fbf60b5 distance sensors: Improve variable naming / description 2018-07-16 21:59:04 +10:00
Philipp Oettershagen 35bde5c9fc LL40LS: Implement driver-specific filtering based on the datasheet and experiments 2018-07-16 21:59:04 +10:00
Beat Küng e1f2360560 gps: remove unused field _baudrate_changed & _mode_changed 2018-07-16 12:18:37 +02:00
Beat Küng 4d71686ac6 gps: add GPS_YAW_OFFSET param & properly initialize _baudrate 2018-07-16 12:18:37 +02:00
Beat Küng a947ad2506 gps: remove unused code & fix _mode_auto initialization 2018-07-16 12:18:37 +02:00
Beat Küng 43c2970fb9 vehicle_gps_position: add heading field 2018-07-16 12:18:37 +02:00
Beat Küng a8463a5226 gpssim: cleanup (remove unused fields) 2018-07-16 12:18:37 +02:00
Daniel Agar 3b580514ae delete unused airspeed.true_airspeed_unfiltered_m_s 2018-07-16 01:09:19 -04:00
Daniel Agar 9a4de09325 sensors remove airspeed negative check 2018-07-16 01:09:19 -04:00