66 Commits

Author SHA1 Message Date
Daniel Agar
ea3acb7121 cmake remove circular linking and reorganize
- px4_add_module now requires MAIN
 - px4_add_library doesn't automatically link
2018-04-29 21:48:54 -04:00
Julian Oes
4cac6d1a44 tune_control: added define for tune strength
This adds a define for the tune strength instead of hard-coding it with
a magic number.
2018-02-22 15:24:46 +01:00
Simone Guscetti
08490b0182 commander_helper: Modify to use the tunes library 2018-01-29 09:45:59 -05:00
David Sidrane
34cd7563fb commander:Removed PX4FMUv1 LED support 2017-09-10 13:37:23 -04:00
Simone Guscetti
1e4b79034f commander_helper: Add rgbled function
with priority and blink period
2017-03-14 14:25:49 +01:00
Beat Küng
95e8e26ae0 commander: use led_control uorb topic 2017-03-12 00:08:35 +01:00
Beat Küng
b0439836f6 refactor drv_led.h: rename to drv_board_led.h
This makes it clear that it's used to control the board LED's, not external
LED's.
2017-03-12 00:08:35 +01:00
Anton Matosov
3a17c07b1e Implement RC and DL failsafe action handling for multirotors
Move RC and DL failsafe actions handling from navigator to commander (credits to @AndreasAntener)
Separate manual kill switch handling via manual_lockdown to prevent override and release of software lockdown by RC switch

Other changes:
Add failsafe tune
Fix LED blinking for Pixracer
Return back support for rc inputs in simulator but now it is configurable via cmake
2016-12-27 00:38:13 +01:00
Beat Küng
241fd629ce ERROR macro: get rid of the many 'oddly, ERROR is not defined for c++', use PX4_ERROR 2016-09-30 13:50:51 +02:00
Hidenori
ff647e7bc8 Navio: GPIO driver command fix and update ifdefs 2016-08-06 20:47:55 +02:00
Hidenori
3049b9af01 Navio2: add support for GPIO and RGBLED 2016-08-06 20:47:55 +02:00
Lorenz Meier
670b0f7c6d Commander: MAVLink is an off-vehicle API we should not depend internally on 2016-08-02 14:54:16 +02:00
Daniel Agar
c22a9137dd commander cleanup headers 2016-06-15 20:35:16 +02:00
Sander Smeets
1815b47fbf Add reserved type, fixes #4466 (#4476)
* Add reserved type, fixes #4466

* Additional reserved vtol types added to is_vtol
2016-05-07 10:59:49 +02:00
Julian Oes
2cd05dea4d commander: try different mavlink include 2016-04-11 18:01:48 +02:00
Julian Oes
5c9713f05b commander: try to get the travis include right 2016-04-11 18:01:48 +02:00
Julian Oes
32c3135788 commander: move battery calculations to systemlib
The commander used to consume the battery_status topic and write the
contents after some calculations into the system state. Instead, the
calculations now happen in library calls in systemlib/battery.

This moves the battery fields out of the vehicle_status message into the
battery_status topic.

This brought quite some changes in all modules that need battery
information. The current state is compiling but untested.
2016-04-11 18:01:47 +02:00
Julian Oes
74072dbe74 vehicle_status.msg: delete unused mavlink stuff
The MAV_TYPE enum was not in sync with the mavlink specs anymore. It
makes therefore sense to remove the duplication and include the correct
mavlink header file where it is needed.
Also, error counts which are not populated, can be scrapped.
2016-04-11 18:01:47 +02:00
Lorenz Meier
835208e070 Commander: Fix dev handle init 2015-12-04 10:51:37 +01:00
Mark Charlebois
af155b8e59 Fixed SITL build
The SITL build seems to run correctly now

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-18 13:02:39 -08:00
Mark Charlebois
b8c40ecb6b Enabled DriverFramework drivers for SITL build
The code here works only for SITL at the present time.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-18 11:58:21 -08:00
jgoppert
6cce823dc6 Replaced wigen with custom matrix lib. 2015-10-24 15:10:20 -04:00
Lorenz Meier
d1f8edb346 Merged beta into master 2015-07-04 23:02:47 +02:00
Lorenz Meier
6e0aa90bb8 Commander: Low-pass battery throttle to better match battery dynamics 2015-07-04 18:58:12 +02:00
Lorenz Meier
234aeb642b Commander: Compile fix 2015-07-03 23:57:38 +02:00
Lorenz Meier
f8f412fc61 Commander: Compile fix 2015-07-03 23:50:47 +02:00
Lorenz Meier
9e223f0c26 Commander: Fix dynamic battery scaling, proposed by @orangelynx. Fixes #2523. 2015-07-03 23:19:04 +02:00
Lorenz Meier
e23459e850 Commander: Fix dynamic battery scaling, proposed by @orangelynx. Fixes #2523. 2015-07-03 23:17:50 +02:00
Lorenz Meier
454becdae5 Merged release_v1.0.0 branch into master 2015-06-25 21:45:17 +02:00
Lorenz Meier
b5a79bbc0b commander: Use distinct tunes for home set and mission ok / failed 2015-06-15 17:28:05 +02:00
Lorenz Meier
a4b2389460 Commander: Support new mission status 2015-06-15 17:28:05 +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
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
bd1c3363df added new vtol mav types 2015-04-27 22:22:52 +02:00
Mark Charlebois
f63ab3d5e3 Merge branch 'master' into linux
Signed-off-by: Mark Charlebois <charlebm@gmail.com>

Conflicts:
	makefiles/firmware.mk
2015-04-22 10:38:46 -07:00
Roman Bapst
5b772e5720 update vehicle status before doing preflight checks 2015-04-22 13:32:09 +02:00
Mark Charlebois
694427e4ba Converted commander to use px4_posix calls
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:37:50 -07:00
Mark Charlebois
bba26c3430 Linux: enabled commander module
The commander module now compiles for Linux.

state_machine_helper_linux.cpp iterates over the virtual devices vs
all devices under /dev as per NuttX when disabling publishing.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:37:50 -07:00
Lorenz Meier
8ebf9755e4 commander: Fix battery config 2015-03-28 13:54:05 -07:00
Lorenz Meier
49b3906b78 commander: Fix status checks for leds and adjust stack size based on actual use 2015-03-15 14:33:22 +01:00
Johan Jansen
dc522f217f Commander: Fix GPS loss not handled properly 2015-02-11 16:42:01 +01:00
Lorenz Meier
807cf7bd16 Commander: Implement calibration routines for multi-sensor setups 2015-02-09 22:56:23 +01:00
Thomas Gubler
2d124852c1 propagate uorb contants change through all modules/drivers 2015-01-28 16:31:41 +01:00
Lorenz Meier
c95de36d3a commander: Add missing parameter definition 2014-07-20 19:42:31 +02:00
Lorenz Meier
264fe884a2 Fixed load voltage calculation 2014-07-20 16:28:44 +02:00
Lorenz Meier
3935540c7d Set full voltage correctly to ensure percentage range fits. Force all users to new value by param renaming. Since this will tend to show batteries as more drained than before, this is a change in a safe direction and will not trigger unnoticed discharges. 2014-07-20 16:23:43 +02:00
Lorenz Meier
3a0fc36c67 Consider the throttle load for battery voltage calculation 2014-07-19 14:12:33 +02:00
Lorenz Meier
afc8908d38 commander: More docs-only changes in headers. 2014-07-13 11:45:32 +02:00
Lorenz Meier
b1f223b468 commander: Default all leds to off 2014-06-24 22:22:56 +02:00