Commit Graph

808 Commits

Author SHA1 Message Date
Lorenz Meier 4fb91f47cd Fix mavlink FTP list stack overflow. Fixes #2180, not flight-critical 2015-05-15 11:15:04 +02:00
Lorenz Meier fa8dc57236 mavlink app: Only send params if the system has booted. 2015-05-15 08:31:45 +02:00
Nate Weibley b4e7b041ca Fix potential null pointer deref if Mavlink start fails before task_main loop
LL_APPEND is called just before the loop spins up but various error conditions can cause the task to exit before then.
When that happens Mavlink::start_helper calls delete on the instance which tries to prune it from the global list.
If this is the first Mavlink instance to attempt starting the list head is null and we hardfault in the Mavlink dtor.

Only call LL_DELETE after checking the list head for a null pointer.
2015-05-13 11:33:11 -04:00
Lorenz Meier 66b87ac761 Fix state-level HIL. Reported by @s3erjaeh 2015-05-13 16:04:33 +02:00
Thomas Gubler cc62033190 improve mavlink set_attitude_target handling
port #1920 to mavlink_receiver
fixes #1921
2015-05-07 16:44:54 +02:00
Lorenz Meier 0d1d92484b MAVLink app: Parameter docs and new test parameter 2015-05-06 19:39:17 +02:00
Don Gagne 46da294ffb New bust mode ftp file download 2015-05-03 19:26:54 -07:00
Lorenz Meier 965e7cce03 mavlink app: Robustify param handling 2015-04-27 09:03:49 +02:00
Lorenz Meier 1d283bf3c1 MAVLink app: Fix usage of static struct, make streams list const 2015-04-26 14:33:57 +02:00
Lorenz Meier 0ebf626632 MAVLink app: Allow higher max data rate 2015-04-26 14:24:01 +02:00
Lorenz Meier 76ce611e84 MAVLink app: Use right lookup function 2015-04-26 14:02:06 +02:00
Lorenz Meier af22c49497 MAVLink app: send correct value when not estimating battery charge level 2015-04-25 09:45:16 +02:00
Lorenz Meier 8279de5a0b MAVLink app: Cleanup RC channel messages / handling 2015-04-21 06:58:03 +02:00
Lorenz Meier d8c91b9fbd MAVLink app: Be less verbose 2015-04-20 09:14:13 +02:00
Don Gagne 05c351183f Parameter meta data fixes 2015-04-15 11:29:37 -07:00
M.H.Kabir 66e6938c6d timesync: Add uORB topic, general fixes 2015-04-14 13:14:15 +05:30
Lorenz Meier 79f6459740 mavlink app: Code style fix 2015-04-09 19:35:14 +02:00
philipoe 309a767c06 mavlink: Allow mavlink_send to take component_ID into account. Still use a default argument in case the user does not supply a component_ID 2015-04-09 19:12:38 +02:00
Matt Beall fa9f7075fa Changed message staging 2015-03-31 10:52:26 -06:00
Matt Beall ce9f46d4e7 Added ping message handling to mavlink receiver 2015-03-31 10:30:57 -06:00
Lorenz Meier a184aebf0f mavlink: Crank up param transmission rate 2015-03-28 13:54:19 -07:00
Lorenz Meier 78741c87e5 MAVLink app: 1) only transmit active params, 2) send params faster, 3) ensure no overflow occurs on buffer when sending at higher rate. 2015-03-28 13:07:01 -07:00
Lorenz Meier fe12bffefa param subsystem: Only send the instantiated parameters via telemetry 2015-03-28 13:07:01 -07:00
Daniel Agar 8aae66b893 trivial code style cleanup round 2 2015-03-27 23:38:58 -04:00
Daniel Agar c2abb0f82a fix code style if trivial one line difference 2015-03-19 23:49:36 +01:00
Lorenz Meier ba0a343090 MAVLink app: Adjust stack size of receiver thread 2015-03-08 08:14:58 +01:00
Lorenz Meier 61437a5587 MAVLink app: Do no allocate memory statically, but only on execution on stack. 2015-03-08 07:49:00 +01:00
Lorenz Meier 0261f5dfbe MAVLink: Reduce stack usage 2015-03-03 17:30:34 +01:00
Lorenz Meier 1d90e86ec4 Commander and MAVLink: Adjust stack sizes as required 2015-03-03 17:29:49 +01:00
Lorenz Meier 0ebbb5f533 MAVLink: Use less RAM 2015-03-01 18:32:07 +01:00
Thomas Gubler 7fb82e74c8 tiny comment improvement 2015-02-28 18:39:36 +01:00
Matt Beall 0f51907dd6 Check if offboard mode was activated before publishing controls 2015-02-28 15:19:16 +01:00
Matt Beall 220fb19eb7 Removed actuator_control_mode flags...Using pre-existing flags instead 2015-02-28 15:19:16 +01:00
Matt Beall b0e878dbae Compiler error 2015-02-28 15:19:16 +01:00
Matt Beall b8aa79cae4 Made changes to have actuator controls mirror other syntax more closely 2015-02-28 15:19:16 +01:00
Matt Beall 7d6723aa2d small change 2015-02-28 15:19:16 +01:00
Matt Beall fd4fd4eaaa Set the actuator control flag in receiver 2015-02-28 15:19:16 +01:00
Matt Beall e2de72b882 Added offboard actuator controls flags to offboard control mode and vehicle control mode to disable controls in att_control apps 2015-02-28 15:19:16 +01:00
Matt Beall 5e199b3984 Set ignore flags to true 2015-02-28 15:19:16 +01:00
Matt Beall 40ae0ebdac Set up to receive mavlink actuator control messages and publish to uorb 2015-02-28 15:19:16 +01:00
Thomas Gubler ee6dc51ef2 improve offboard attitude setpoint handling 2015-02-28 15:19:15 +01:00
Thomas Gubler ed16bd6fc6 mavlinkreceiver: set att target: remove memset 2015-02-28 15:19:15 +01:00
Thomas Gubler 0389d30e0e offboard attitude sp: handle thrust only messages
if attitude/rates haven been used previously do not set the ignore flags
even if the message asks us to do so to keep the controllers running
2015-02-28 15:19:15 +01:00
Thomas Gubler 3d29fa5f4e mavlink receiver: fix indentation 2015-02-28 15:19:15 +01:00
Thomas Gubler 2b2f7e9407 introduce offboard control mode topic
Replace offboard_control_setpoint with offboard_control_mode
Remove all setpoint data from the topic as it's  not used anymore
(setpoint data is directly routed into position/attitude setpoint topics
for some time now)
Remove mode enum and replace with ignore booleans which map better to
the mavlink message
Mavlink: Rework parsing of offboard setpoints
Commander: in offboard mode set control flags based on ignore flags
instead of enum
2015-02-28 15:19:15 +01:00
Ziyang LI 63fd54f44e fixed 'NaN' yaw setpoint in offboard mode 2015-02-17 09:29:29 +01:00
Atsunori Saito 71c6c6aba4 mavlink: Fix for divide by zero. 2015-02-16 06:49:27 +01:00
Lorenz Meier ccc6f0b020 Improve multi-stream handling by template and index usage. Can be consolidated slightly once multiplatform code knows about multi-topics 2015-02-13 09:33:12 +01:00
Lorenz Meier dcf03a2594 mavlink app: Use actuator controls message 2015-02-13 09:33:12 +01:00
Lorenz Meier 5fae142bbc Delete stream name in same thread as where its created 2015-02-10 16:31:24 +01:00