Lorenz Meier
7b36353e52
Merge pull request #2289 from kd0aij/HIL_inhibitSensorCheck
...
Hil inhibit sensor check
2015-06-06 09:39:34 +02:00
Mark Whitehorn
9588e6fc68
whitespace
2015-06-05 21:23:35 -06:00
Mark Whitehorn
e9634fbe47
suppress preflight check failure for HIL autostart_ids
2015-06-05 21:18:25 -06:00
Lorenz Meier
7f07e4306a
commander: Fix non-existing middle switch position for acro switch
2015-06-05 22:45:07 +02:00
Lorenz Meier
4594945d57
commander: Forbid override in stabilized mode
2015-06-05 22:45:06 +02:00
Lorenz Meier
8e935e6fa6
Add new stabilize mode
2015-06-05 22:45:05 +02:00
Lorenz Meier
db3ac5f3ac
commander: Compile fix
2015-05-30 19:06:05 -07:00
Lorenz Meier
164a1178b8
commander: Be more verbose about low battery warnings, do not trigger low battery warning sound in HIL
2015-05-30 18:43:25 -07:00
Lorenz Meier
c18210b163
commander: Update command names
2015-05-27 15:21:33 -07:00
Lorenz Meier
4565f57468
Merged release_v1.0.0 into master
2015-05-27 15:28:41 -07:00
Mark Charlebois
1ca05aaa64
orb_advert_t changed to void * and checks changed to nullptr
...
The existing orb_advert_t use thoughout the code sometimes tries
to treat it as a file descriptor and there are checks for < 0
and ::close calls on orb_advert_t types which is an invalid use
of an object pointer, which is what orb_advert_t really is.
Initially I had changed the -1 initializations to 0 but it was
suggested that this should be nullptr. That was a good recommendation
but the definition of orb_advert_t had to change to void * because
you cannot initialize a uintptr_t as nullptr.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-05-27 14:42:49 -07:00
Mark Charlebois
a734fc96d1
extensive orb_advert_t fixes
...
The calls to orb_advertise were being mishandled throughout the code.
There were ::close() calls on memory pointers, there were checks
against < 0 when it is a pointer to a object and values larger than
0x7ffffffff are valid. Some places orb_advert_t variables were
being initialized as 0 other places as -1.
The orb_advert_t type was changed to uintptr_t so the pointer value
would not be wrapped as a negative number. This was causing a failure
on ARM.
Tests for < 0 were changed to == 0 since a null pointer is the valid
representation for error, or uninitialized.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-05-27 14:41:33 -07:00
Lorenz Meier
6253f6154f
commander: rename field for RC input mode
2015-05-25 16:34:42 +02:00
Lorenz Meier
81240d6040
commander: Initial RC detection is only an info string
2015-05-24 23:31:58 +02:00
Lorenz Meier
009815deb0
Improve config and mapping
2015-05-24 20:11:51 +02:00
Lorenz Meier
01fd84e4dc
mavlink and commander app: Add support for manual input, either directly or via remote control
2015-05-24 20:11:50 +02:00
Lorenz Meier
bed746c213
commander: Add param and mode to disable RC input in general and required validation / setup.
2015-05-24 20:11:50 +02:00
Lorenz Meier
335b212f92
commander: Better update logic, better feedback text for landings
2015-05-24 11:43:18 +02:00
Don Gagne
7f5a5e085c
Add "calibrate esc" command
2015-05-22 22:27:43 +02:00
Don Gagne
a6af1fc0fa
Add "calibrate esc" command
2015-05-22 09:28:52 -07:00
Lorenz Meier
9cf1b4ba7a
Merge branch 'release_v1.0.0'
2015-05-22 07:24:57 +02:00
Lorenz Meier
9179fcefc9
Calibration state machine fixes, generates less bogus error messages during calibration
2015-05-21 17:25:37 +02:00
Lorenz Meier
d906fb8f31
Merged master into linux
2015-05-19 21:00:02 +02:00
Roman Bapst
12c6dc8ad8
added routine for autopilot level calibration
2015-05-19 14:20:00 +02:00
Lorenz Meier
2625d3e973
Merge pull request #2175 from Zefz/preflight_gps_check
...
Preflight: GPS check
2015-05-19 10:10:46 +02:00
Lorenz Meier
e5fad077df
Merge master into linux
2015-05-18 23:28:57 +02:00
Lorenz Meier
83fdb9931a
commander / mavlink: Add battery status to output BATTERY_STATUS MAVLink message
2015-05-17 17:44:51 +02:00
Mark Charlebois
36f5d47ed9
Merge remote-tracking branch 'upstream/master' into linux
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
Conflicts:
src/modules/commander/gyro_calibration.cpp
src/modules/mavlink/mavlink_ftp.cpp
2015-05-16 15:04:38 -07:00
Johan Jansen
510b6124ec
Commander: Fix inverted circuit breaker logic
2015-05-14 21:20:05 +02:00
Johan Jansen
fee02c6943
Commander: Fix parameter bug in preflight check function
2015-05-14 20:30:10 +02:00
Johan Jansen
f020ad4ba3
Commander: Check if GPS receiver is suffering from jamming noise
2015-05-14 19:29:35 +02:00
Johan Jansen
45f1fd6634
Commander: Add preflight check for missing GPS module
2015-05-14 19:19:30 +02:00
Lorenz Meier
8a73f91ad6
Commander: Be less verbose about param saves to focus the user attention to relevant output
2015-05-14 17:33:07 +02:00
Roman Bapst
90c3aec1fd
make main LED show low and critical battery status
2015-05-13 16:24:44 +02:00
Mark Charlebois
c5237f7f6f
Removed extra abstracton layer in systemlib
...
The calls to task_spawn_cmd, kill_all, and systemreset were wrappers
around the px4_{task_spawn_cmd|kill_all|systemreset} implementations.
Removed the wrappers and changed all calls to the px4_ equivalents.
NuttX specific code was moved into px4_tasks.h
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-05-06 14:43:11 -07:00
Mark Charlebois
12a25e4b63
Merge remote-tracking branch 'upstream/master' into linux
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
Conflicts:
makefiles/firmware.mk
src/modules/commander/module.mk
src/modules/mavlink/mavlink_ftp.h
src/modules/mavlink/mavlink_tests/module.mk
2015-05-04 16:36:59 -07:00
Lorenz Meier
0e78e38cda
commander: Use pre-rotated topic in board frame
2015-05-04 14:06:19 +02:00
Mark Charlebois
523a4aa785
Clang warning fix
...
Clang build fails due to -Werr and warning on use of
if (!condition != other_condition && some_condition)
Clang wants to be clear that the initial '!' wasn't
intended for the whole expression.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-28 12:29:50 -07:00
Mark Charlebois
190814bc97
Merge remote-tracking branch 'upstream/master' into linux
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
Conflicts:
src/drivers/rgbled/rgbled.cpp
src/modules/commander/PreflightCheck.cpp
src/modules/commander/airspeed_calibration.cpp
src/modules/commander/calibration_routines.cpp
src/modules/commander/gyro_calibration.cpp
src/modules/commander/mag_calibration.cpp
src/modules/mc_att_control/mc_att_control_main.cpp
2015-04-28 11:48:26 -07:00
Roman Bapst
be03f98d64
added esc calibration routines
2015-04-28 15:15:46 +02:00
Simon Wilks
ef63babb71
Make sure circuit breakers are ready before the first preflight check call.
2015-04-27 13:30:37 +02:00
Lorenz Meier
3f8c81433e
commander: Provide more useful mission feedback
2015-04-27 09:07:53 +02:00
Lorenz Meier
b07964660e
commander: prune old code, do not run preflight checks when nothing relevant in the system is changing.
2015-04-26 17:39:00 +02:00
Don Gagne
a7f88d97b8
Sensor cal rework
...
- cancel support
- versioned cal messages
- better still detection
- better messaging
2015-04-26 14:34:19 +02:00
Lorenz Meier
6c9e5d1ecf
commander: Only subscribe to existing telemetry status publications
2015-04-26 14:33:56 +02:00
Lorenz Meier
bbb27b8635
commander: Reduce excessive stack size
2015-04-26 14:33:56 +02:00
Lorenz Meier
c7ecafe99b
commander: Critical fix for arm state machine. Only auto-save if not stored already
2015-04-25 12:53:58 +02:00
Lorenz Meier
7e81778908
commander: Fix data link lost / regained logic
2015-04-25 10:15:15 +02:00
Lorenz Meier
5c4494b1c9
commander: Fixing HIL operation with failing preflight checks
2015-04-24 21:06:45 +02:00
Mark Charlebois
187f13cd70
QuRT and POSIX changes - part 4
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-24 01:24:31 -07:00