9856 Commits

Author SHA1 Message Date
Dennis Mannhart
5d4486c920 mc_pos_control: only follow line if longer than 0.1 2017-09-11 02:08:22 -07:00
Dennis Mannhart
50e3c4067a mc_pos_control: update _curr_pos_sp all the time 2017-09-11 02:08:22 -07:00
Dennis Mannhart
9dc5051504 mc_pos_control auto: use current velocity if smaller than velocity setpoint when slowing down 2017-09-11 02:08:22 -07:00
Dennis Mannhart
a84baa1dcc mc_pos_control auto: adjust velocity only along track; use vector instead of point 2017-09-11 02:08:22 -07:00
Dennis Mannhart
2735280ffc mc_pos_control auto: treat off the track differently depending on position 2017-09-11 02:08:22 -07:00
Dennis Mannhart
a7be9854d9 mc_pos_control: remove scaling in auto and remove limit_velocity function; update auto logic 2017-09-11 02:08:22 -07:00
Beat Küng
c82deaf26f dataman: fix test for return value of px4_task_spawn_cmd
And destroy the semaphore if startup fails.

Credits for finding this go to @jeonghwan-lee
2017-09-11 02:04:27 -07:00
David Sidrane
1e0489f48b PX4 System gpio_led:Code cleanup
Use PX4 log and module documantation
   Fixed memory leaks
2017-09-10 13:37:23 -04:00
David Sidrane
bcb89f54e2 px4iofirmware:Removed FMUv1 and px4io-v1
Removed FMUv1 and px4io-v1, defaulting to px4io-v2
   were appicable.
2017-09-10 13:37:23 -04:00
David Sidrane
5782e5c5fd uavcan:Removed PX4FMUv1 support 2017-09-10 13:37:23 -04:00
David Sidrane
34cd7563fb commander:Removed PX4FMUv1 LED support 2017-09-10 13:37:23 -04:00
David Sidrane
8c8ea0754a PX4 System gpio_led:Removed FMUv1 2017-09-10 13:37:23 -04:00
tops4u
2b700975f2 Added basic support for Lightware SF20/LW20 I2C connected LIDAR Devices 2017-09-09 17:36:59 +01:00
Nicolas de Palezieux
a6ce2b320c
mission: add heading towards ROI mode for multicopters 2017-09-08 12:50:15 -04:00
Daniel Agar
7a42424411 Navigator resurrect FW GPS failure navigation (#7762) 2017-09-08 12:18:59 -04:00
Daniel Agar
e15afcca7a vehicle_command commands are uint16, not uint32 2017-09-08 09:06:30 +02:00
Hancheol Choi
43667b240e mavlink fix incorrect attitude_sp subscription in HIGH_LATENCY (#7928) 2017-09-07 09:32:42 -04:00
Daniel Agar
665ab03f5c muorb fix sign-compare 2017-09-07 10:27:36 +02:00
Daniel Agar
9b3b83f1ac uavcanesc ignore sign-compare 2017-09-07 10:27:36 +02:00
Daniel Agar
d4502349fb syslink fix sign-compare 2017-09-07 10:27:36 +02:00
Daniel Agar
9b5fe8c476 ignore -Wsign-compare per module 2017-09-07 10:27:36 +02:00
Daniel Agar
4e557e0f14 logger add manual_control_setpoint 2017-09-06 05:32:35 +02:00
Daniel Agar
0c38f89b23 commander params wording 2017-09-05 12:57:25 -04:00
Daniel Agar
dc18112697 EKF2 limit map reprojection (#7900) 2017-09-05 12:56:53 -04:00
Beat Küng
201b2bd75e logger: remove non-existing topics arm_auth_ack & arm_auth_request 2017-09-05 18:40:53 +02:00
Daniel Agar
49dceb2bff logger update topics (#7914)
- fixes #7911
2017-09-05 10:43:38 -04:00
Paul Riseborough
c3b1ec8b24 commander: Changes resulting from code review
Change units of parameters from uSec to sec.
Change recommended FW value for COM_POS_FS_GAIN from 2 to 0
Fix error in parameter description for COM_POS_FS_PROB
Fix error in unit for COM_POS_FS_GAIN
2017-09-01 11:53:41 +02:00
Paul Riseborough
684a598d9f commander: Improve position failsafe parameter documentation 2017-09-01 11:53:41 +02:00
Paul Riseborough
491ba08af1 commander: Add parameters to control position failsafe behaviour
This is required because the hardcoded values were too sensitive for fixed wing use and bad initial mag heading could trigger the failsafe and lead to crashes on launch. The defaults have been left unchanged. Suitable values for fixed wing use will need to be implemented in the airframe specific config file.
2017-09-01 11:53:41 +02:00
Daniel Agar
f67ac8ba00 land detector clang-tidy trivial changes 2017-08-31 22:49:44 -04:00
Daniel Agar
6e402bd6f4 land detector uniform initialization cleanup 2017-08-31 22:49:44 -04:00
Daniel Agar
cb8cc9a795 land detector add cycle perf 2017-08-31 22:49:44 -04:00
Daniel Agar
c250fb0a9e land detector FW round get_max_altitude()
- this prevents constant land detector publications
2017-08-31 22:49:44 -04:00
Daniel Agar
18d29d5a73 land detector FW uniform initialization 2017-08-31 22:49:44 -04:00
Daniel Agar
90819b2852 land detector move hysteresis constants into FW and MC 2017-08-31 22:49:44 -04:00
Daniel Agar
07619cf723 Make NuttX drivers cross platform (VDev -> CDev) 2017-08-31 09:27:36 +02:00
Sugnan Prabhu S
6562dd496b mavlink: implement MAV_CMD_REQUEST_FLIGHT_INFORMATION
Signed-off-by: Sugnan Prabhu S <sugnan.prabhu.s@intel.com>
2017-08-31 09:26:39 +02:00
Julien Lecoeur
b0c57fd65b Return bool in added MavlinkStream*::send() 2017-08-30 14:45:02 +01:00
Julien Lecoeur
be74a1a4ed Log debug topics 2017-08-30 14:45:02 +01:00
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