9817 Commits

Author SHA1 Message Date
Julien Lecoeur
12353f4da7 Add support for mavlink message DEBUG_VECT 2017-08-30 14:45:02 +01:00
Julien Lecoeur
eeb966d375 Add support for mavlink message DEBUG 2017-08-30 14:45:02 +01:00
Julien Lecoeur
b6c30cf9b2 Add support for incoming NAMED_VALUE_FLOAT mavlink messages 2017-08-30 14:45:02 +01:00
sanderux
595d706eaf Reverse pusher delay
Thist adds a delay for the reverse thrust to allow the motor to brake and avoid sync issues.
2017-08-30 08:08:25 +02:00
José Roberto de Souza
3fd7e3f89c modules: commander: Implement arm authorization request
If the second bit of COM_ARM_MIS_EXT_REQ is set the vehicle
will only arm after receive an authorization.

The authorization flow:
vehicle/external -> command: arm authorization request -> arm authorizer
vehicle <- command ack with result in progress <- arm authorizer
vehicle <- any data request <- arm authorizer
vehicle -> data response -> arm authorizer
vehicle <- command ack authorizing or denying <- arm authorizer

Right now there is 2 ways to start the arm authorization request,
that can be configured by COM_ARM_AUTH parameter.
- One arm: When pilot request the vehicle to arm, it will request
authorization blocking the arm process up to the timeout defined in
COM_ARM_AUTH parameter.
- Two arms request: The first arm request will request the
authorization and will deny the first arm request, if authorizer
approved the request, pilot can arm again within the authorized
time and arm without any block.

The arm authorizer can be running anywhere(compute board or PX4
itself) and it is responsible to request the mission list or any
other information to vehicle before send a final response, it
should send to vehicle a COMMAND_ACK with
result = MAV_RESULT_IN_PROGRESS as soon as it receive the arm
authorization request and the final result
as after it got all the data that it needs authorize or deny the
request.
2017-08-28 08:28:57 +02:00
José Roberto de Souza
66170d1c01 mavlink: Do not miss a vehicle_command
If 2 or more vehicle_command are queued a call to update() will
return the oldest vehicle_command and set the _cmd_time to the
timestamp of the last vehicle_command queued losing it.
Using update_if_changed() fix this causing all item being consumed
one at each call of send().
2017-08-28 08:28:57 +02:00
José Roberto de Souza
7e3ab95975 modules: commander: Group arm requirements in just one byte and add a new requirement
Instead of having several bools to each requirement to arm, lets group then
in a byte and use bitmask.
This also add a new arm requirement "arm authorization" that
will be implemented in another patch.
2017-08-28 08:28:57 +02:00
Jasmine
8bf12f512b vtol tailsitter attitude control (#7841)
* revise pitch transition start and actuator_out_1 in transition

* update with new matrix math library
2017-08-26 12:05:17 +02:00
Daniel Agar
edea4a369e uavcan start enforcing code style (#7856) 2017-08-25 13:07:21 -04:00
Beat Küng
dd4be8aecf mavlink: only enable FTP if -x flag is provided 2017-08-24 19:03:58 +02:00
Beat Küng
12f1c342d0 mavlink_main: do not use message_buffer if _ftp_on
if _ftp_on is true, message_buffer was created and read, but it was
actually never written to, so this is not needed. It can only ever be
written to if _forwarding_on is true.
2017-08-24 19:03:58 +02:00
Beat Küng
ca24c8e2b6 printload: add a column for the number of used file descriptors
And the maximum number of configured file descriptors.

Note that this is per group, not per thread, so that e.g. logger and
log_writer_file show the same number.
2017-08-23 08:11:44 +02:00
Beat Küng
409a1ce7d7 param SITL_BAT_DRAIN: add @unit s 2017-08-23 08:10:16 +02:00
Daniel Agar
a02caff1bc unit_test inline implementation and remove module build 2017-08-23 08:06:55 +02:00
Daniel Agar
47987f7e36 delete dummy tone alarm 2017-08-23 08:05:48 +02:00
Daniel Agar
fd6499baca cmake simplify uavcan linking 2017-08-23 08:05:13 +02:00
Dennis Mannhart
e39b38ba96 landdetector groundcontact: adjust climbrate if landing speed is low 2017-08-21 20:38:07 +02:00
Vicente Monge
a9b12cc8b4 Changed the default behavior for the client launching as a infinite loop 2017-08-21 16:48:37 +02:00
Daniel Agar
1e42d523da mavlink main return main loop delay proper size 2017-08-21 01:31:27 +02:00
Daniel Agar
4b97e15714 commander remove orb_exists telemetry check 2017-08-21 01:30:17 +02:00
Lorenz Meier
52ba62d6c4 Navigator: Pause and unpause camera triggering on entering and exiting a mission 2017-08-20 22:47:48 +02:00
Lorenz Meier
447c167d3e Navigator: Add on_inactivation() interface.
This allows to run a command / function once when being deactivated. This avoids having flight modes which are not active run unnecessary code all the time.
2017-08-20 22:47:48 +02:00
Lorenz Meier
e33a2b6c8d Simulator: Add missing parameter_update topic 2017-08-20 20:54:58 +02:00
Daniel Agar
b70b8288b9 px4_includes cleanup incomplete list 2017-08-20 20:42:42 +02:00
Daniel Agar
e63da5860e uORB cleanup Subscription/Publication c++ 2017-08-20 20:42:42 +02:00
Lorenz Meier
7223780563 Simulator: Make battery discharging configurable. 2017-08-20 20:37:31 +02:00
AndresRengifo
641f2f856b fix: battery prearm check ignored when CBRK_SUPPLY_CHK is disabled 2017-08-20 19:36:54 +02:00
José Roberto de Souza
4462869432 Add support to new fields in command_ack 2017-08-19 09:04:52 +02:00
José Roberto de Souza
c200d0e9a4 Keep initialization of outgoing vehicle_command_s consistent
All others are initialized this way.
2017-08-19 09:04:52 +02:00
bresch
25bbe76530 FW att ctrl - Fix vehicle_attitude_setpoint timestamp logging when in stabilized (#7803) 2017-08-16 20:38:19 -04:00
CAI Dongcai
63306ada92 FW attitude and position control minor code cleanup (#7802)
- change a little bit to make the code more readable
2017-08-16 10:51:41 -04:00
Beat Küng
ebafa5698d log_writer_file: register hardfault handler before opening the log file
hardfault_store_filename() opens and closes a file descriptor, so if we do
it before opening the log file, we need one file descriptor less
2017-08-16 16:46:56 +02:00
Beat Küng
9e01842c6a mavlink ulog: advertise ulog_stream topic before subscribing to ulog_stream_ack
This reduces the maximum number of needed file descriptors by 1 when using
ulog streaming.
2017-08-16 16:46:56 +02:00
Julian Oes
ba150566c6 mavlink_command_sender: add some log printfs
This improves the printfs which will be logged. This should improve to
debug the camera triggering. The debug printfs are disabled by default.
2017-08-16 09:47:50 +02:00
Julian Oes
31edab6d6d mavlink_command_sender: remove unused include 2017-08-16 09:47:50 +02:00
sanderux
33e67fd527 Disable PA during landing 2017-08-16 08:19:06 +02:00
sanderux
e6c942033b Disable pusher assist when descending 2017-08-16 08:19:06 +02:00
sanderux
8f5293d7b0 Remove explicit pusher throttle setting 2017-08-16 08:19:06 +02:00
sanderux
33efd89ef8 Disable pusher assist for quadchute failsafe 2017-08-16 08:19:06 +02:00
sanderux
66bb7adc4c simplify back transition throttle scaling 2017-08-16 03:06:13 +02:00
sanderux
6b9a8daceb Correctly name b_trans_thr and remove contraint 2017-08-16 03:06:13 +02:00
sanderux
ff669ee645 Move vtol standard params 2017-08-16 03:06:13 +02:00
sanderux
7a8d3c4ab2 Correctly check reverse thrust conditions 2017-08-16 03:06:13 +02:00
sanderux
4396e78d12 Allow negative thrust on reverse throttle 2017-08-16 03:06:13 +02:00
sanderux
01d9212a29 Widen pusher throttle constraint 2017-08-16 03:06:13 +02:00
sanderux
e5a55cd142 Support negative thrust for back transition 2017-08-16 03:06:13 +02:00
sanderux
59d81ee0f1 Clarify parameters 2017-08-16 03:06:13 +02:00
sanderux
fbbe3d1f41 Check velocity valid and param description 2017-08-16 03:06:13 +02:00
sanderux
50894e8615 VTOL control back transition ramp up time 2017-08-16 03:06:13 +02:00
sanderux
560e9e88dc Apply slew rate to reverse thrust 2017-08-16 03:06:13 +02:00