Beat Küng
df9a09ce9d
PreflightCheck: rename 'Estimator internal checks' to 'Position unknown'
2018-09-29 09:17:53 -04:00
Beat Küng
30cf287f7b
PreflightCheck: update messages & use proper log level
2018-09-29 09:17:53 -04:00
Beat Küng
ee928c20f0
PreflightCheck: improve error message in case there is no sensor data
2018-09-29 09:17:53 -04:00
Beat Küng
7f0f391fe1
GPS PreflightCheck: improve failure reporting
...
- previously it was possible to get a Position Control rejected message
without further advice what was actually wrong. So now we report warnings
even if gps is not required for arming (which could be annoying too...).
- the GPS failure message was very generic, making it hard to debug the
cause. Now we check every bit and send an appropriate warning
All strings were checked not to exceed the maximum length of 50 characters.
2018-09-29 09:17:53 -04:00
Beat Küng
f1966aa3fd
PreflightChecks: improve labels by not capitalizing everything
...
estimator status init is not required.
2018-09-29 09:17:53 -04:00
Beat Küng
92bf761bf1
PreflightCheck: do not check for primary mag & inconsistencies if system has no mag
2018-09-24 13:24:38 +02:00
Daniel Agar
c7e572d2c2
commander preflight check sensors via uORB instead of IOCTL
...
- remove all platform defines
2018-09-18 22:24:03 +02:00
Julian Oes
d370a7c2b5
commander: remove unused HITL transition function
...
To my knowledge this hil transition function is not used anymore,
however, it makes sending the DO_SET_MODE command unnecessarily complex.
In my opinion the DO_SET_MODE command should only change the mode but
not other things like arming (already removed) and HITL state (this
commit).
Often times, I was seeing the error message "Set SYS_HITL to 1 and
reboot to enable HITL." when using QGC with a vehicle in HITL.
HITL is set via parameter which then has an impact in the startup script
where the CLI argument `-hil` is added to some of the commands that
require it (like commander as well).
2018-08-30 09:16:02 +02:00
Julian Oes
f3e576b6f4
commander: remove set but unused HITL flag
...
This flag does not seem to be used anywhere.
2018-08-30 09:16:02 +02:00
Matthias Grob
c87e124f13
commander: refactor COM_DISARM_LAND to param wrapper
...
after review comment request from @dagar. Thanks!
2018-08-30 08:05:13 +02:00
Matthias Grob
0c6bffb66a
commander: make auto disarm timeout float
...
such that fractions of a second are configurable
2018-08-30 08:05:13 +02:00
Daniel Agar
715fad8bf1
commander send_vehicle_command don't ignore cmd argument
...
- #10359
2018-08-29 16:05:14 +02:00
bresch
124a34e8f6
Failure Detector - Add space between Failure and Detector in @group field
2018-08-28 11:23:25 -04:00
bresch
9be0c97346
Failure Detector - use bitmask field instead of boolean in vehicle_status msg (failure_detector_status) and instead of struct in class
2018-08-28 11:23:25 -04:00
bresch
0001031e59
Failure Detector - Rename parameters and change group
2018-08-28 11:23:25 -04:00
bresch
93ba11c218
Failure Detector - Move COM_FAIL_x params to dedicated _param.c file
2018-08-28 11:23:25 -04:00
bresch
92b00ec07e
Failure Detector - Do not trigger force_failsafe flag anymore
2018-08-28 11:23:25 -04:00
bresch
fea91c96e8
Failure Detector - Use dedicated parameters for attitude checks
2018-08-28 11:23:25 -04:00
bresch
72f2317c95
Failure Detector - move "force_failsafe" flag inside circuit_breaker protection; remove PX4_WARN and send mavlink msg only once
2018-08-28 11:23:25 -04:00
bresch
9a6fef62ab
Vehicle_Status_msg - Add attitude_failure flag to vehicle_status message
2018-08-28 11:23:25 -04:00
bresch
c4c8e8d2db
Failure Detector - Various cleanup and style changes.
...
- use pragma once guard in FailureDetector.hpp
- send Commander parent to ModuleParams and remove update_params() method
- simplify attitude checks
- FailureDetector::get_status() (previously named "get") is now a constant method that returns a constant reference
2018-08-28 11:23:25 -04:00
bresch
4e1027f292
FailureDetector - Add check for non-zero roll/pitch failure parameters. Rename 'result' into 'updated'
2018-08-28 11:23:25 -04:00
bresch
246b3ebc23
FailureDetector - Update failure detector logic in commander.
2018-08-28 11:23:25 -04:00
bresch
7908f75b8b
FailureDetector - New class, first working simple implementation. Outputs PX4_ERR messages if roll or pitch is exceeded.
2018-08-28 11:23:25 -04:00
Sebastian Verling
d3bb3631ec
fixed sign error in mag calibration
2018-08-28 14:28:35 +02:00
Daniel Agar
29082d0118
commander battery_failsafe state machine share strings
2018-08-21 02:38:51 -04:00
Daniel Agar
6396e486bd
commander cleanup battery failsafe handling
2018-08-21 02:38:51 -04:00
mcsauder
3a22ee48db
Correct trailing whitespaces.
2018-08-18 15:15:41 -04:00
acfloria
1daaa6f5dc
Shorten notification on the link switch to fit in 50 characters
2018-08-08 21:13:56 +02:00
Beat Küng
26f11cb9d7
commander: use PX4_INFO for status output
2018-08-08 21:09:39 +02:00
Bob-F
2ece14bad1
Port PX4 to BeagleBone Blue Board using library librobotcontrol instead of a submodule
2018-08-06 13:32:36 +02:00
mcsauder
21aea5bf6c
Rename commander.cpp to Commander.cpp and update CMakeLists.txt.
2018-08-03 22:06:05 -04:00
Daniel Agar
92bfdea1e3
commander delete non-existant methods and cleanup
2018-08-03 17:38:16 -04:00
Daniel Agar
05ca1defee
commander consolidate estimator checks in new method
2018-08-03 17:38:16 -04:00
Daniel Agar
daee7a4e4e
commander preflight delete individual sensor selftest
2018-08-02 08:05:52 +02:00
TSC21
ca42483794
update msgs fields from camelCase to snake_case so rosidl_generate_interfaces() is able to generate code for ROS IDL files
2018-07-30 21:40:28 +02:00
Daniel Agar
921e9f6e09
commander params fix COM_VEL_FS_EVH unit
...
- fixes #10028
2018-07-28 10:03:19 -04:00
Daniel Agar
5e6b35758a
commander params fix COM_OF_LOSS_T unit
2018-07-28 10:03:19 -04:00
MaEtUgR
5dae404fb2
vehicle_commands: add VEHICLE_CMD_DO_ORBIT
2018-07-24 15:03:53 +02:00
Daniel Agar
b1d3bb0403
stop ignoring Wmissing-field-initializers and fix ( #9912 )
2018-07-22 12:45:52 -04:00
Roman
9d1fa8cee2
esc_calibration: adjust timeout when waiting for user to connect battery
...
to 20 seconds
Signed-off-by: Roman <bapstroman@gmail.com >
2018-07-03 07:05:38 +00:00
Roman
5d87eed41c
esc_calibration: use hrt_elapsed_time instead of manually calculating the diff
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-07-03 07:05:38 +00:00
Roman
73577df994
esc_calibration: use batter status connected flag instead of checking voltage
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-07-03 07:05:38 +00:00
Roman
beb8c3e152
esc_calibration: use predefined literals
...
Signed-off-by: Roman <bapstroman@gmail.com >
2018-07-03 07:05:38 +00:00
Roman
8b629454de
esc_calibration: increase safety and initialise all data
...
- do not do calibration if not very sure that battery is not connected
- initialise all structs and variables
Signed-off-by: Roman <bapstroman@gmail.com >
2018-07-03 07:05:38 +00:00
Daniel Agar
9ce83f2208
fix all sign-compare warnings
2018-07-01 09:36:55 +00:00
Daniel Agar
cf74166801
double promotion warning fix or ignore per module
2018-07-01 09:36:55 +00:00
Julian Oes
6ff9fd2209
calibration: remove warning message
...
The calibration warning was only used in the ESC calibration and in all
cases it actually meant that the calibration failed. In order to keep
the API as small as possible, I've deprecated the warning string and
converted the warning messages to failed messages.
2018-06-29 16:07:32 +00:00
Mark Sauder
d3c169b1e0
Fix whitespaces in PreflightCheck.cpp, tilt_quad.aux.mix, and tilt_quad.main.mix
2018-06-28 20:20:32 -04:00
Beat Küng
bf1c11a33c
commander: move comment to the right place
...
It's now the same way as in the ARM logic further down.
2018-06-27 10:41:21 +02:00