Commit Graph

6993 Commits

Author SHA1 Message Date
Thomas Gubler 4f84cdc8b8 fw_att_pos_estimator: use new global map projection 2014-04-29 14:40:01 +02:00
Thomas Gubler 3ec818ce1e rerwite projection interrface to not break the current implementation 2014-04-29 14:39:36 +02:00
Thomas Gubler 35b0c29456 navigator: set reference for map projection only once 2014-04-25 15:09:11 +02:00
Thomas Gubler 06dd10cb01 commander: set home position valid flag 2014-04-25 15:08:38 +02:00
Thomas Gubler f7e18eaa58 uorb home position topic: add valid flag 2014-04-25 15:08:06 +02:00
Thomas Gubler aab64af884 geo: map projection: safer initialization, only accept init from navigator, return int instead of bool 2014-04-25 14:47:37 +02:00
Thomas Gubler 241a99fc28 position estimator mc: do not initialize map projection because this is now handled globally 2014-04-25 14:45:21 +02:00
Thomas Gubler 08bc777208 pos estimator inav: use map_projection_reference to set local pos reference lat lon 2014-04-25 13:57:06 +02:00
Thomas Gubler a467bd61c1 Merge remote-tracking branch 'upstream/mpc_rc' into geo 2014-04-25 13:31:31 +02:00
Thomas Gubler 5285eb2f99 fw att pos estimator: use map projection reference values for local pos 2014-04-25 09:44:40 +02:00
Thomas Gubler 7e1ea35571 mavlink receiver: in hil use map_projection_timestamp for hil_local_pos.ref_timestamp 2014-04-25 09:43:19 +02:00
Thomas Gubler f5d9023b10 navigator: set home_pos timestamp as map projection reference timestamp 2014-04-25 09:42:28 +02:00
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 be0824c207 Merge remote-tracking branch 'upstream/master' into geo 2014-04-24 16:17:16 +02:00
Lorenz Meier 8102c5a460 Merge pull request #862 from thomasgubler/gitignore_tags
add tags file to .gitignore
2014-04-24 16:13:21 +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 496cba0855 add tags file to .gitignore 2014-04-24 16:03:36 +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
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
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
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 f0e28a60ca Revert "HIL: Increased MAVLink link wait time based on previous experience that this is timing sensitive."
This reverts commit 78bf7ed969.
2014-04-22 09:57:16 +02:00
Lorenz Meier 5481b91ed1 Merge pull request #854 from jean-m-cyr/master
Reduce data manager SD card wear and tear
2014-04-22 09:39:13 +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 af33660351 Merge pull request #853 from PX4/hil_batt_fix
commander: Also publish battery status in HIL, since we have a fake batt...
2014-04-22 01:39:12 +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 20f20d54b0 Merge pull request #848 from PX4/lpos_logfix
Lpos logfix
2014-04-22 01:32:11 +02:00
Lorenz Meier 25b64e07ab Merge pull request #851 from PX4/hil_hotfix
HIL: Increased MAVLink link wait time based on previous experience that ...
2014-04-22 01:30:08 +02:00
Lorenz Meier 78bf7ed969 HIL: Increased MAVLink link wait time based on previous experience that this is timing sensitive. 2014-04-22 01:29:39 +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
Lorenz Meier 5e32ca29d5 Fixed LPOS message in log, added ground flags field 2014-04-21 21:25:54 +02:00
Lorenz Meier 6297b451ba sdlog2: Fix indendation to expose length better, cut string lengths for excessive strings 2014-04-21 21:00:24 +02:00
Lorenz Meier 65e2062d7b sdlog2: fix lpos labels string, shorten messages with excessive length 2014-04-21 20:56:02 +02:00