Commit Graph

25915 Commits

Author SHA1 Message Date
alessandro 4f5644c0ef tap_esc: more cleanup
- removing unused variables
- removing unused code blocks
- improving code readability
- initialising members at definition
2018-04-18 07:48:24 +02:00
alessandro 1ab2d22e42 tap_esc: removed redundant _initialized member 2018-04-18 07:48:24 +02:00
alessandro b49ccb889c tap_esc: removed unused NO_VERIFY_CONFIG 2018-04-18 07:48:24 +02:00
alessandro edf6f6c97a tap_esc: removed unnecessary includes 2018-04-18 07:48:24 +02:00
alessandro fceffb1d01 tap_esc: removed unused mode var/struct 2018-04-18 07:48:24 +02:00
Alessandro Simovic b71ac78959 tap_esc: converted to module 2018-04-18 07:48:24 +02:00
Alessandro Simovic 5da7beb8f5 tap_esc_common: docs & function return types etc. 2018-04-18 07:48:24 +02:00
Alessandro Simovic f95b823e31 tap_esc: moved common functions to tap_esc_common 2018-04-18 07:48:24 +02:00
Alessandro Simovic 4ab8c2a682 tap_esc: made _uart_fd a class member 2018-04-18 07:48:24 +02:00
Beat Küng 64aab8a685 rcS: do not reset COM_FLTMODE* on airframe change
An airframe change keeps all RC params except the flight modes. This fixes
that.
2018-04-17 14:17:20 +02:00
Hamish Willee 1a0c312f28 Fix description of VT_FW_ALT_ERR 2018-04-17 08:28:05 +02:00
Daniel Agar 7bc3a12efe commander move telemetry checks to new preflightcheck helper 2018-04-16 20:43:33 -04:00
Daniel Agar 64fb4b43b6 commander preflightCheck don't report failures during calibration 2018-04-16 20:43:33 -04:00
Daniel Agar 2271b3f127 commander preflight checks pass status and status_flags messages 2018-04-16 20:43:33 -04:00
Daniel Agar f2104217d4 commander arm_auth check last 2018-04-16 20:43:33 -04:00
Daniel Agar a2bc0bd947 commander prearm_check limit simultaneous error messages 2018-04-16 20:43:33 -04:00
Daniel Agar 55596fad20 commander move safety check to prearm 2018-04-16 20:43:33 -04:00
Daniel Agar a4703c6be4 commander arming state transition consolidate HIL special checks and remove atomic 2018-04-16 20:43:33 -04:00
Daniel Agar 54ea78898c commander arming state transition delete useless errors 2018-04-16 20:43:33 -04:00
Daniel Agar 1400652724 commander arming state machine pass checks by default
- this is needed for the unit tests
2018-04-16 20:43:33 -04:00
Daniel Agar f81a1aedcd commander state machine add global position check 2018-04-16 20:43:33 -04:00
Daniel Agar 729c98d9e2 commander move avionics rail voltage check out of state machine
- add preflight_check helper
2018-04-16 20:43:33 -04:00
Daniel Agar 8931f1a75c commander set status_flags.usb_connected directly and delete static 2018-04-16 20:43:33 -04:00
Daniel Agar 415c5f13bb commander move power check to prearm_check 2018-04-16 20:43:33 -04:00
Daniel Agar c679703da4 commander move arm authorization to prearm_check 2018-04-16 20:43:33 -04:00
Daniel Agar 082126610d commander status flags delete condition_system_prearm_error_reported
- this flag often results in hiding useful information, or adding
   useless information to the mavlink console
2018-04-16 20:43:33 -04:00
Daniel Agar 8f543d300d commander COMPONENT_ARM_DISARM remove useless arm error 2018-04-16 20:43:33 -04:00
Daniel Agar c673c9f531 commander preflight sensor failure report one at a time 2018-04-16 20:43:33 -04:00
Daniel Agar bb13b602e2 commander arming_state_transition cleanup preflight and prearm calls
- only call prearm if preflight passes
 - prearm always provide feedback
2018-04-16 20:43:33 -04:00
Daniel Agar 208e320975 commander prearm_check is always prearm 2018-04-16 20:43:33 -04:00
Daniel Agar e73317a720 commander preflightCheck fail silently for the 2 seconds (rather than skip checks entirely) 2018-04-16 20:43:33 -04:00
Daniel Agar e5d9c826d8 commander state machine fix preflight and prearm error
-  fixes #9155
2018-04-16 20:43:33 -04:00
Daniel Agar 35bf37d617 commander state machine helper shorten names 2018-04-16 20:43:33 -04:00
Simone Guscetti 8a7dc1b320 commander: Remove usb_ connected flag on battery warnings
Battery warning gets only fired if a battery is inserted.
2018-04-16 14:33:43 -04:00
Thomas Stastny 71170dce0a mavlink: HIGHRES_IMU set diff_pressure in fields_updated (#9296) 2018-04-16 11:43:52 -04:00
alessandro c16e17f47b mag_calibration: only allocate as much memory as needed 2018-04-16 14:49:45 +02:00
Beat Küng 123f11fcdd land_detector: use user-defined literals for time constants 2018-04-14 13:45:57 +02:00
Beat Küng e98919cf3c drv_hrt: add user-defined integer literals for time constants
The goal is to improve the readability for expressions like:
if (hrt_elapsed_time(&start_time) > 8000000)

Available since C++11
2018-04-14 13:45:57 +02:00
Daniel Agar 17beeb13c4 Jenkins set CCACHE_BASEDIR on Mac 2018-04-14 02:11:30 -04:00
Daniel Agar e9aa79e309 Update submodule ecl to latest Fri Apr 13 20:26:41 CDT 2018 (#9303)
- ecl in PX4/Firmware (163fdded13d1cb48ea4849a4596feaa7025cb796): https://github.com/PX4/ecl/commit/ba2b9dfdd96d50d697165407b88b5bc94cdef84c
    - ecl current upstream: https://github.com/PX4/ecl/commit/02e319431b948f660f8548707849489d6c822fad
    - Changes: https://github.com/PX4/ecl/compare/ba2b9dfdd96d50d697165407b88b5bc94cdef84c...02e319431b948f660f8548707849489d6c822fad

02e3194 2018-04-11 Daniel Agar - cmake remove embedded vim settings
91b5bfe 2018-04-11 Daniel Agar - attitude_fw remove unused perf include
02055ac 2018-04-09 Paul Riseborough - EKF: Fix non GPS aiding data reset logic (#418)
2018-04-13 23:43:48 -04:00
Daniel Agar 90b81cf4c4 move check stack to cmake and run in Jenkins 2018-04-13 23:24:34 -04:00
PX4 Jenkins 0c9f483581 Update submodule DriverFramework to latest Fri Apr 13 20:26:36 CDT 2018
- DriverFramework in PX4/Firmware (1297859680ce15980a970c95d7caa95be67957c7): https://github.com/PX4/DriverFramework/commit/f98ea65e9bd35a8d2bdedd39e519b7320fe82b16
    - DriverFramework current upstream: https://github.com/PX4/DriverFramework/commit/e06222dd151e2f92476762e483915df5bd67929d
    - Changes: https://github.com/PX4/DriverFramework/compare/f98ea65e9bd35a8d2bdedd39e519b7320fe82b16...e06222dd151e2f92476762e483915df5bd67929d

    e06222d 2018-04-11 Daniel Agar - cmake change px4_add_module -> px4_add_library
2018-04-13 23:22:43 -04:00
Daniel Agar 119fe0a24f Update submodule v2.0 to latest Fri Apr 13 20:26:31 CDT 2018
- v2.0 in PX4/Firmware (23017d051b7ff6686c8c8ff025a8e98af094780a): https://github.com/mavlink/c_library_v2/commit/163d4c84b9eb58a02cab94d039f54c303977d991
    - v2.0 current upstream: https://github.com/mavlink/c_library_v2/commit/c55dd0ec312a667f28b0cab4f1fe697d2888c00c
    - Changes: https://github.com/mavlink/c_library_v2/compare/163d4c84b9eb58a02cab94d039f54c303977d991...c55dd0ec312a667f28b0cab4f1fe697d2888c00c

    c55dd0e 2018-04-12 PX4BuildBot - autogenerated headers for rev https://github.com/mavlink/mavlink/tree/292874beed6bf756be45421bd2ae2420de921f2b
e2916e5 2018-04-10 PX4BuildBot - autogenerated headers for rev https://github.com/mavlink/mavlink/tree/012765b923546224ef928caeb86c72d5a78a433a
2018-04-13 23:21:45 -04:00
PX4 Jenkins 8c9b941e60 Update submodule sitl_gazebo to latest Fri Apr 13 20:26:27 CDT 2018
- sitl_gazebo in PX4/Firmware (4ffa98aa2a): https://github.com/PX4/sitl_gazebo/commit/28921bca9df9a212675b8e888c926d1ec6f6b28e
    - sitl_gazebo current upstream: https://github.com/PX4/sitl_gazebo/commit/0df46c53b14ef4241b33fb7a74a3cb6f9d83c6dd
    - Changes: https://github.com/PX4/sitl_gazebo/compare/28921bca9df9a212675b8e888c926d1ec6f6b28e...0df46c53b14ef4241b33fb7a74a3cb6f9d83c6dd

    0df46c5 2018-04-13 Tully Foote - Only use catkin env hook command if building with catkin.
38c0d07 2018-04-12 Tully Foote - Add package to GAZEBO_RESOURCE_PATH to make the worlds accessible.
5811488 2018-04-11 Tully Foote - updating OpticalFlow submodule
7c79bd7 2018-04-10 Tully Foote - Add environment hooks to export paths for plugins and resources.
2018-04-13 23:21:05 -04:00
Daniel Agar 4ffa98aa2a Jenkins add OSX builds and disable circleci (#9198) 2018-04-12 12:19:44 -04:00
Beat Küng d4faaff854 logger: remove some unneeded SITL topics
We got over the limit
2018-04-12 11:32:15 +02:00
Roman c206e0f1ac vtol_type.cpp: close pwm output device file descriptor
Signed-off-by: Roman <bapstroman@gmail.com>
2018-04-12 09:19:47 +02:00
Roman bd434636e9 vtol_type: avoid code duplication
- created one method which has access to the pwm output device

Signed-off-by: Roman <bapstroman@gmail.com>
2018-04-12 09:19:47 +02:00
Roman 733d773bcc drv_pwm_output: include board config header
- board config can define PX4_PWM_ALTERNATE_RANGES which needs to be known
by the compiler prior to processing this file

Signed-off-by: Roman <bapstroman@gmail.com>
2018-04-12 09:19:47 +02:00
Roman 41a9ac0acb vtol_att_control: initialise VT_FW_MOT_OFFID correcly for standard vtol
Signed-off-by: Roman <bapstroman@gmail.com>
2018-04-12 09:19:47 +02:00