Commit Graph

1369 Commits

Author SHA1 Message Date
Dennis Mannhart ccd0be82ba FlightTaskManualAltitude: if flow is on, ensure minimum altitude 2018-07-20 09:26:18 +02:00
Dennis Mannhart 93ebb60b84 FlightTaskAutoLine: distance to bottom depending on the mode 2018-07-20 09:26:18 +02:00
Dennis Mannhart e1bc7a8e0a FlightTask.cpp resetSetpoints if subsctiption fails 2018-07-20 09:26:18 +02:00
Dennis Mannhart 5a4701c7de Flighttask: update comments 2018-07-20 09:26:18 +02:00
Dennis Mannhart 97be84b0e4 FlightTask: introduce method for limits and adjust accordingly for all the tasks 2018-07-20 09:26:18 +02:00
Dennis Mannhart 73b4f452cc FlightTask: add distance to bottom 2018-07-20 09:26:18 +02:00
Dennis Mannhart 1759e181dc FlightTaskAutoLine: legacy support velocity ramp at low altitude 2018-07-20 09:26:18 +02:00
Dennis Mannhart 7d30db1395 FlightTaskAuto: subscribe to home position 2018-07-20 09:26:18 +02:00
Dennis Mannhart 24e6e4041f PositionControl: format clean up 2018-07-20 09:26:18 +02:00
Dennis Mannhart aef6b9216e FlightTasksAuto/Line: replace BlockParams with module params 2018-07-20 09:26:18 +02:00
Dennis Mannhart 4a9e5941b6 mc_pos_control and FlightTaskAuto rebase fix 2018-07-20 09:26:18 +02:00
Dennis Mannhart 19743bcaec FlightTaskAuto: comments refactor 2018-07-20 09:26:18 +02:00
Dennis Mannhart 1cde38f82f FlightTaskAuto: always update yaw 2018-07-20 09:26:18 +02:00
Dennis Mannhart 29391acbca FlightTaskAutoLine: fix greater sign 2018-07-20 09:26:18 +02:00
Dennis Mannhart e2ac12ef2c FlightTask: comment fixes 2018-07-20 09:26:18 +02:00
Dennis Mannhart 99de97a528 FlightTaskAuto: fix global reference update 2018-07-20 09:26:18 +02:00
Dennis Mannhart b7f729e432 FlightTask: split _evalutateVehiclePosition into _evaluateVehicleLocalPosition
and _evaluateVehicleGlobalPosition
2018-07-20 09:26:18 +02:00
Dennis Mannhart 913932ff9e FlightTask: move geo-lib include to FlightTaskAuto where it is required
for conversion from global to local
2018-07-20 09:26:18 +02:00
Dennis Mannhart b20bd076a0 FlightTaskAuto: always update type 2018-07-20 09:26:18 +02:00
Dennis Mannhart 59087afac8 FlightTaskManualStabilized: replace minimum throttle with minum throttle specific for stabilized 2018-07-20 09:26:18 +02:00
Dennis Mannhart 65603d7de7 FlightTaskAutoLine: don't reset during normal operation 2018-07-20 09:26:18 +02:00
Dennis Mannhart 08a89ccdbb FlightTaskAutoLine: if previous type was idle, set thrust to NAN again to ensure
thrust is not used. Also, if previous was not a loiter or position type, then reset
setpoints to current state. This is needed because during line following, the
previous setpoints are requires and cannot be NAN.
2018-07-20 09:26:18 +02:00
Dennis Mannhart 5f293cceac FlightTaskAutoLine: first activate and then reset 2018-07-20 09:26:18 +02:00
Dennis Mannhart 6da47b4a85 FlightTaskAutoLine: move method 2018-07-20 09:26:18 +02:00
Dennis Mannhart 3d034823b0 FlightTaskAutoLine: introduce previous type which used to reset setpoints 2018-07-20 09:26:18 +02:00
Dennis Mannhart a401778038 FlightTask: remove global to local map 2018-07-20 09:26:18 +02:00
Dennis Mannhart 0efbbdc227 FlightTaskAutoLine: replace xy/z setpoints with FlightTask base setpoints 2018-07-20 09:26:18 +02:00
Dennis Mannhart 37bfd8e01a FlightTaskAuto: always update cruise speed 2018-07-20 09:26:18 +02:00
Dennis Mannhart 3083de0979 FlightTaskAuto: typo fix 2018-07-20 09:26:18 +02:00
Dennis Mannhart fbe8a558b2 FlightTaskIndex: add AutoLine 2018-07-20 09:26:18 +02:00
Dennis Mannhart 288ee2362e FlightTaskAuto: remove warning message 2018-07-20 09:26:18 +02:00
Dennis Mannhart f62c3c3b8a FlightTaskAutoLine: simplify logic by setting setpoints directly 2018-07-20 09:26:18 +02:00
Dennis Mannhart 338130a9b4 FlightTaskAuto: simplify logic by just updating waypoints if anything has changed 2018-07-20 09:26:18 +02:00
Dennis Mannhart 171c19c3ca FlightTaskAutoLine: override _reset method 2018-07-20 09:26:18 +02:00
Dennis Mannhart e2347c30f6 FlightTaskAuto: comment fix 2018-07-20 09:26:18 +02:00
Dennis Mannhart 69ea4df45c FlightTaskAuto: pure virtual reset method 2018-07-20 09:26:18 +02:00
Dennis Mannhart 2c385e6967 FlightTaskAuto: remove unused include 2018-07-20 09:26:18 +02:00
Dennis Mannhart 816f2d12d5 FlightTaskAuto minor clean up 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 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
Daniel Agar 50b5e124d5 cmake fix BUILD_URI 2018-07-17 21:03:27 -04:00
David Sidrane d0d361ef92 sbus:Add comment that turning off the single wire has not effect 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
Beat Küng 5e3e486527 px4_posix.h: avoid defining PX4_F_RDONLY as O_RDONLY
- There is an assumption un uORB that PX4_F_RDONLY is not 0.
- But O_RDONLY is 0 on Linux. orb_exists passes 0 to px4_open, which in
  uORB::DeviceNode::open leads to an unnecessary allocation of
  SubscriberData()
- PX4_F_RDONLY is only used in combination with px4_open, never with open()

However even if it was wrong/unexpected, it did not cause any problems,
just the unnecessary allocation.
2018-07-13 11:30:23 +02:00
Daniel Agar 850b1ad6a7 EKF2 split output predictor and publish attitude immediately (#9832)
* EKF2 split output predictor and publish attitude immediately

* ecl: incorporate magic number tidy up
2018-07-09 08:11:24 +10:00
DanielePettenuzzo 5cb6753572 i2c.h: include board_config 2018-07-03 17:33:18 +02:00
DanielePettenuzzo 6cb17839ee distance sensors: remove bus_option array and add it to i2c.h header 2018-07-03 17:33:18 +02:00
Daniel Agar 9ce83f2208 fix all sign-compare warnings 2018-07-01 09:36:55 +00:00
Daniel Agar cf74166801 double promotion warning fix or ignore per module 2018-07-01 09:36:55 +00:00
Daniel Agar 3ba97297d5 tests simple timing microbenchmark 2018-07-01 09:25:22 +00:00