Commit Graph

28679 Commits

Author SHA1 Message Date
Thomas Gubler 9ebd6b3486 geo: interface to get reference lat lon, option to set reference timestamp on initialization 2014-04-25 09:41:46 +02:00
Anton Babushkin 22aaae197b Merge branch 'rc_timeout' into mpc_rc 2014-04-24 22:40:46 +02:00
Anton Babushkin 63c50676f9 MISSION switch renamed to LOITER 2014-04-24 22:38:19 +02:00
Thomas Gubler 4e30784d6c rename map_projection_inited to map_projection_initialized 2014-04-24 17:16:20 +02:00
Thomas Gubler b249d04e52 geo: get function for timestamp of map projection 2014-04-24 17:13:06 +02:00
Thomas Gubler 618ac319e6 pos estimator inav: check if map projection is initialized 2014-04-24 17:06:10 +02:00
Thomas Gubler 9f2da53f08 mc pos control: map projection init not needed anymore 2014-04-24 17:05:30 +02:00
Thomas Gubler 35d15720ef geo: add timestamp and function to get init state 2014-04-24 17:04:27 +02:00
Thomas Gubler cfe346ddfa Merge remote-tracking branch 'upstream/master' into mtecs 2014-04-24 16:19:42 +02:00
Thomas Gubler be0824c207 Merge remote-tracking branch 'upstream/master' into geo 2014-04-24 16:17:16 +02:00
Thomas Gubler 8bb1b39399 mavlink receiver: hil: local pos reference lat lon from first data 2014-04-24 16:12:28 +02:00
Thomas Gubler fbcb248bc3 navigator: init map projection on home pos update 2014-04-24 15:59:49 +02:00
Thomas Gubler 6517c201f7 geo: add missing return, make map projection reference static 2014-04-24 15:59:13 +02:00
Thomas Gubler 3a898e54ad towards a global map projection instance, WIP: need to remove local updates of the reference and add a global map update 2014-04-24 14:30:29 +02:00
Anton Babushkin db474072a7 Merge branch 'rc_timeout' into mpc_rc 2014-04-23 19:03:03 +02:00
Anton Babushkin 56592ec77d commander: don't start RTL on failsafe if landed 2014-04-23 19:01:05 +02:00
Thomas Gubler d7d6a3d3b7 filter gps simulation hil gps message with sysid 2014-04-23 16:26:44 +02:00
Thomas Gubler a2940182ef add parameter to mavlink app to allow parsing of HIL GPS message even if not in HIL mode
Conflicts:
	src/modules/mavlink/mavlink_receiver.cpp
2014-04-23 15:53:48 +02:00
Anton Babushkin 34597599fc navigator: merging bug fixed 2014-04-23 15:26:24 +02:00
Anton Babushkin dc8a0b291a Merge branch 'mpc_local_pos' into mpc_rc 2014-04-23 15:25:13 +02:00
Anton Babushkin 320c97c498 navigator: check if mission reached on vehicle_status updates 2014-04-23 15:24:45 +02:00
Anton Babushkin 2998685a3a Merge branch 'mpc_local_pos' into mpc_rc 2014-04-23 14:22:52 +02:00
Anton Babushkin 60554c8a56 navigator: publish global_position_setpoint on vehicle_status updates 2014-04-23 14:15:59 +02:00
TickTock- 971e8fc4ff Made failsafe more intuitive. Default (0) maps to whatever channel is throttle. If a non-zero value is entered, a direct channel map is used so use 2014-04-22 23:19:04 -07:00
TickTock- 81c03154b9 Added ASSISTED, AUTO, EASY, RETURN, & LOITER programmable thresholds to enable various user mode switch configs (orig., 2x3, 1x6, etc). 2014-04-22 21:49:29 -07:00
TickTock- 831a7c4a83 Added RC_MAP_FAILSAFE parameter for customizing failsafe channel. Default to THROTTLE 2014-04-22 20:53:07 -07:00
TickTock- 7e621070ca renamed mission_switch to loiter_switch and assisted_switch to easy_switch 2014-04-22 18:23:27 -07:00
TickTock- d6e6ee3440 Merge branch 'rc_timeout' of https://github.com/TickTock-/Firmware into rc_merged 2014-04-22 17:43:36 -07:00
Anton Babushkin a1cf8801bb sdlog2: add failsafe state logging 2014-04-22 11:36:25 +02:00
Anton Babushkin e4a4430f9f Merge branch 'master' into rc_timeout 2014-04-22 11:18:07 +02:00
Anton Babushkin 302233a34f Merge branch 'master' into mpc_local_pos 2014-04-22 11:13:11 +02:00
Julian Oes fd56c15a20 Merge remote-tracking branch 'px4/master' into navigator_cleanup
Conflicts:
	ROMFS/px4fmu_common/init.d/rcS
	src/modules/mavlink/mavlink_main.cpp
	src/modules/mavlink/mavlink_messages.cpp
	src/modules/mavlink/module.mk
	src/modules/sdlog2/sdlog2_messages.h
2014-04-22 11:10:48 +02:00
Lorenz Meier a30411e9f2 Fixed printing in attitude control 2014-04-22 11:02:53 +02:00
Lorenz Meier 4585df1182 Robustified filter init / sequencing 2014-04-22 11:02:31 +02:00
Lorenz Meier 1e80e62491 ekf: Better variable zeroing 2014-04-22 10:26:44 +02:00
Lorenz Meier bd637697e4 Removed verbose print 2014-04-22 10:26:26 +02:00
Lorenz Meier 2ecaab98f9 Merge branch 'master' of github.com:PX4/Firmware into ekf_params 2014-04-22 09:58:07 +02:00
Lorenz Meier aefea1a95d Merge pull request #850 from PX4/mavlink_startup_cleanup
mavlink: Start the same in HIL mode as in normal mode. Requires all HIL ...
2014-04-22 09:57:56 +02:00
Lorenz Meier af56e65a37 Merge branch 'master' into ekf_params 2014-04-22 09:57:28 +02:00
Jean Cyr bf4558c31b Reduce data manager SD card wear and tear
When the data manager was first designed each file record contained a 2
byte header and an 126 byte data section, resulting in a record length
of 128 bytes. Along the way it was decided to add 2 spare bytes to the
record header, but regrettably the data section was not correspondingly
reduced in size so we end up with a record length of 130 bytes. This is
bad since it does not align with SD card flash sectors and results in
more erase/write flash cycles than necessary thus reducing the SD cards
life.

This update reduced the data section of the data manager to 124,
resulting in an optimal record length of 128 bytes.

In order to avoid the reuse of data previously written data in the old
format, which could result in catastrophic misinterpretation, the data
manager file is checked at startup. If it is found to be in the old
format, it is deleted and recreated with in the new record length. In
this case previously stored data is lost, but that is far safer than the
unpredictable result of using the old file.
2014-04-22 01:19:01 -04:00
Lorenz Meier 125f0b2f88 Added trap to filter to catch NaN handling 2014-04-22 02:25:38 +02:00
Lorenz Meier 39a0d4e54d Better error handling / reporting in filter 2014-04-22 02:24:29 +02:00
Lorenz Meier 904ada124b ekf: Put reset statements after variable zero operation to ensure values get initialized correctly 2014-04-22 02:15:33 +02:00
Lorenz Meier 119dfc44e2 Merged home_fix 2014-04-22 01:42:12 +02:00
Lorenz Meier 3a4874b22e Merge branch 'sensors_loop' of github.com:PX4/Firmware into ekf_params 2014-04-22 01:40:45 +02:00
Lorenz Meier 42e9c84d50 Merge branch 'master' of github.com:PX4/Firmware into ekf_params 2014-04-22 01:40:27 +02:00
Lorenz Meier a0c9227044 commander: Also publish battery status in HIL, since we have a fake battery available and the system freaks out without knowing its main supply 2014-04-22 01:38:15 +02:00
Lorenz Meier db15e2811e commander: Fix altitude initialisation, do not depend on global pos valid flag. 2014-04-22 01:36:32 +02:00
Lorenz Meier ca77c380b5 sensors: Keep looping in sensors app even if gyros do not update any more. There are lots of other reasons we might want to keep clocking the system. This resolves the RC timeout dependency in HIL. 2014-04-22 01:25:25 +02:00
Lorenz Meier 815e221c1f mavlink: Start the same in HIL mode as in normal mode. Requires all HIL tools to run sh /etc/init.d/rc.usb now. Improve UART error handling 2014-04-22 01:23:55 +02:00