Commit Graph

9017 Commits

Author SHA1 Message Date
Daniel Agar e81e6a8296 fw_att_control add rattitude mode 2017-02-18 08:03:19 +01:00
Daniel Agar 9120082b0c fw_att_control stabilized mode publish att_sp quat 2017-02-18 08:03:19 +01:00
Daniel Agar 12e5aca028 fw_att_control remove unused accel sub 2017-02-18 08:03:19 +01:00
Daniel Agar f6eecf4d5c commander tests group TRANSITION_CHANGED tests 2017-02-18 08:03:19 +01:00
Daniel Agar c14c9c20eb commander tests allow FW ACRO 2017-02-18 08:03:19 +01:00
Andreas Antener 459b8b7c7e FW att: removed unused fields again 2017-02-18 08:03:19 +01:00
Andreas Antener e04fe593e0 Tiltrotor: option to enable differential thrust in forwards flight 2017-02-18 08:03:19 +01:00
Andreas Antener b19cd19411 FW Acro: udpate ECL and implemented fixed-wing Acro 2017-02-18 08:03:19 +01:00
Andreas Antener a5f3f65c2b Switch assignment: added manual and stabilized switch for a default stabilized switch scheme, let FW go into Acro 2017-02-18 08:03:19 +01:00
Beat Küng e4ca10363b mavlink MAV_CMD_IMAGE_START_CAPTURE message: send request for highest resolution 2017-02-17 23:01:25 +01:00
Beat Küng 1a81b64d49 VEHICLE_CMD_PREFLIGHT_CALIBRATION: update temperature_calibration param definition 2017-02-17 23:01:25 +01:00
Lorenz Meier 51c8e90508 FW att control: Increase stack size to ensure limits 2017-02-17 22:31:55 +01:00
James Goppert 7659402fdb WIP: valgrind runtime analysis and fixes (#6521)
* Fix several valgrind identified mem leaks

* Added callgrind target.

* px4_posix_tasks use nullptr
2017-02-17 12:36:52 -05:00
Beat Küng a4050db766 param: comment what the lock is needed for 2017-02-17 11:27:08 +01:00
Beat Küng df8f0da70c param & param_shmem: enable locking
We need to protect access to the param_values array. This is dynamically
allocated and resized (utarray_reserve() calls realloc). If some thread
was iterating the array while another was resizing the array, the first one
would iterate on a freed array, thus accessing invalid memory.

On NuttX this could lead to hardfaults in rare conditions.

Unfortunately we need to initialize the semaphore on startup, by calling
sem_init(). This adds a param_init() method called by every board/config
that uses the params (at least I think I've found all of them)
2017-02-17 11:27:08 +01:00
Beat Küng fa3a6b890c param & flashparam param_export: use value directly instead of calling param_get
This call is not needed, and will avoid deadlocks when locking is enabled.
2017-02-17 11:27:08 +01:00
Beat Küng 42967df63f param command: use param_* calls even if flash-based params are enabled
This will ensure proper locking.
2017-02-17 11:27:08 +01:00
Beat Küng 68bee1b847 flashparams: remove the locking stubs
locking will be done in the params module
2017-02-17 11:27:08 +01:00
James Goppert 85f62f5da0 Fix param scoping to use cmake for parsing. 2017-02-17 11:26:46 +01:00
Lorenz Meier 44c8857354 MAVLink app: Update incorrect comment 2017-02-17 10:00:11 +01:00
Michael Schaeuble 0d61e22d9b mavlink: Buffer UAVCAN parameter re-requests
We buffer the mavlink messages and don't forward them directly
via uORB. This solves an issue where many requests are dropped and
QGC does not start properly in combination with UAVCAN devices.
2017-02-17 09:15:56 +01:00
José Roberto de Souza 172e218dbd Commander: Use leds to show PX4 status on AeroFC 2017-02-17 09:13:33 +01:00
Lorenz Meier d66d7a4932 Navigator: Fix code style 2017-02-17 09:13:13 +01:00
Lorenz Meier 798a7ed8cd Commander: Fall back to GPS enabled modes once GPS becomes available 2017-02-17 09:13:13 +01:00
Lorenz Meier 070a73ad63 Commander: Switch into right mode in various corner conditions
* If you move in LAND, AUTO or HOLD the sticks the system will give control back to the pilot
  * If you do not connect any RC the system will default to HOLD and will allow you tablet control
  * If you gain position lock for the first time the system will re-evaluate the mode switch (so if you dropped down to alt hold it will now go into position)
  * If the system breaches the Geofence it will now always drop back to POSCTRL if the sticks are moved
2017-02-17 09:13:13 +01:00
Lorenz Meier c8fb21e73e Navigator: Enforce a minimum altitude for RTL 2017-02-17 09:13:13 +01:00
Paul Riseborough 72633ad4c8 events: update documentation for polyfit algorithm 2017-02-16 22:17:47 +01:00
Kabir Mohammed ea5caf258f mavlink : fix vision debug stream attitude update 2017-02-16 09:53:15 +01:00
Siddharth Bharat Purohit ab465744f1 temp_cal: add math explanation for polynomil fit algo 2017-02-16 09:34:19 +01:00
yaoling 0e34de08fb Update send_event.cpp
do same as command module
2017-02-16 09:33:16 +01:00
aivian 7a77e27a79 fixed wing offboard attitude setpoint fix (#6112) 2017-02-15 23:51:50 -05:00
Julian Oes 9369262e63 navigator: allow more mission items
Since using more than 256 mission items has been tested and fixed, the
limit can now be raised to more than 256 (but smaller than UINT16_MAX).

Since the whole file is allocated in advance on NuttX, the limit there
is (arbitrarily) set to 2000. For POSIX archs such as SITL, we don't
really need to constrain ourselves any longer.
2017-02-15 22:29:24 -05:00
Julian Oes 8c1e85a65f dataman: don't wrap around at 256
The dataman started overwriting contents after 256 items because the
item index were only uint8_t. This fix allows for more than 256
waypoints.
2017-02-15 22:29:24 -05:00
Lorenz Meier 081c40c6fa Commander: Fix level cal command 2017-02-15 22:16:20 +01:00
Kabir Mohammed e63747ec2f lpe : changes to allow hybrid GPS-denied navigation 2017-02-15 21:48:33 +01:00
Kabir Mohammed 0f91378eeb lpe : use vision timestamps to compute measurement delay 2017-02-15 21:48:33 +01:00
Kabir Mohammed 85df00d2da lpe : use per-measurement variance for vision 2017-02-15 21:48:33 +01:00
Kabir Mohammed 48e7b94162 mavlink : track time offset faster 2017-02-15 21:48:33 +01:00
Kabir Mohammed d831c262d0 mavlink : fix code style 2017-02-15 21:48:33 +01:00
Kabir Mohammed 444005f290 logger : Log new vision topics 2017-02-15 21:48:33 +01:00
Kabir Mohammed c65b8fffd3 sdlog2 : log new vision topic 2017-02-15 21:48:33 +01:00
Kabir Mohammed a158d7f124 att_q : move to new vision attitude topic 2017-02-15 21:48:33 +01:00
Kabir Mohammed bdcc626f29 mavlink : correct stream name for vision message 2017-02-15 21:48:33 +01:00
Kabir Mohammed f43ee3a0f5 mavlink : use new vision estimate topic and fix stream name 2017-02-15 21:48:33 +01:00
Kabir Mohammed 294663854d inav : move to new vision topic 2017-02-15 21:48:33 +01:00
Kabir Mohammed 7236bafee1 ekf2 : move to new vision topic 2017-02-15 21:48:33 +01:00
Kabir Mohammed 8eaddeee0a lpe : move to new vision topic 2017-02-15 21:48:33 +01:00
Kabir Mohammed f8775306d3 Remove deprecated vision_position_estimate topic 2017-02-15 21:48:33 +01:00
Kabir Mohammed b643c94f0a mavlink_receiver : Switch VISION_POSITION_ESTIMATE to new topics 2017-02-15 21:47:51 +01:00
Kabir Mohammed 569251dc2e mavlink_receiver : Add external estimator interface 2017-02-15 21:47:51 +01:00