Commit Graph
17 Commits
Author SHA1 Message Date
Daniel Agar 9b5fe8c476 ignore -Wsign-compare per module 2017-09-07 10:27:36 +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
Julian Oes 8ff237c69f Remove size optimization for individual modules
It makes more sense to set the optimization flags on a platform basis
instead of individually for each module. This allows for different
optimization options for SITL, NuttX, Snapdragon, etc.
2016-09-30 08:11:51 +02:00
Daniel Agar 2487dbfc92 remove Wpacked and cleanup unused warning flags 2016-05-19 21:49:34 +02:00
Daniel Agar 7aa6e85563 enable Wshadow 2016-05-05 13:32:42 +02:00
James Goppert 967e4dd127 Modified cmake to use STACK_MAX and STACK_MAIN 2016-04-14 13:36:36 -04:00
David Sidrane 2ffccc5c9f BUGFIX:CLI "commander calibrate acel" resulted in hardfault 2015-11-19 07:50:45 -10:00
Lorenz Meier 8b70bd2487 Commander: Increase stack for commandline calibration 2015-11-19 15:53:32 +01:00
Lorenz Meier 35d8e0bc55 Raise frame size 2015-10-31 20:32:58 +01:00
Lorenz Meier 3f4a8bf76d Commander: Set yaw on takeoff and use it as yaw during descend phase of RTL 2015-10-27 09:58:54 +01:00
Lorenz Meier 207d4a0c6b Commander: Fix excessively large stack size 2015-10-08 12:09:48 +02:00
Daniel Agar 4151522902 only enforce frame size for nuttx 2015-10-06 23:37:33 -04:00
Daniel Agar 6c10cf18e4 re-enable Werror 2015-10-06 18:28:30 -04:00
Lorenz Meier c2e9f81586 Commander: Remove unused param file from CMake to prevent empty linkage warning 2015-10-06 11:25:52 +02:00
Lorenz Meier e0702ce48d Commander: Build optimized for size 2015-10-03 13:01:29 +02:00
Mark Charlebois 3f758490a4 QuRT: move to HexagonTools 7.4 toolchain
Some subsystems error on frame size without the included patches.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-24 15:16:01 -07:00
James Goppert 1d6b31d196 Switch to cmake build system. 2015-09-07 20:37:45 -04:00