Commit Graph

1927 Commits

Author SHA1 Message Date
Thomas Gubler 5f786af8fa mavlink: status is a pointer 2014-05-04 15:02:37 +02:00
Thomas Gubler 0e31b5935e remove trailing whitespace 2014-05-04 15:02:30 +02:00
Lorenz Meier ee580206b4 mavlink: Only sending HIL control commands if the system is actually armed 2014-05-04 14:06:38 +02:00
Lorenz Meier 5199dea2b3 Merge pull request #876 from PX4/autodeclination
Added automatic declination lookup
2014-05-03 03:41:30 -07:00
Anton Babushkin f6d61dfb4c mavlink: swap x and y when handling MANUAL_CONTROL mavlink message 2014-05-01 23:45:21 +02:00
Lorenz Meier 2829d65871 Merge pull request #881 from PX4/led_fix
commander: Stop mixing board support and high level code - just accept t...
2014-04-30 06:34:34 -07:00
Lorenz Meier 1dfa2f100e commander: Stop mixing board support and high level code - just accept that non-mandatory leds may or may not be there 2014-04-30 15:33:47 +02:00
Anton Babushkin 0c58588a87 mc_att_control: yaw feed-forward in manual control modes fixed 2014-04-29 19:51:05 +02:00
Lorenz Meier 2ee02e5e4b Merge pull request #874 from jean-m-cyr/master
Proper data manager restart handling
2014-04-29 07:53:30 +02:00
Lorenz Meier da525f29f1 Add missing header in mixer load command 2014-04-28 19:25:13 +02:00
Anton Babushkin 4378454a10 mc_pos_control: hotfix, MPC_TILTMAX_AIR and MPC_TILTMAX_LND parameters fixed 2014-04-28 17:49:57 +02:00
Andrew Tridgell ac52111085 px4io: support PX4IO_P_SETUP_FORCE_SAFETY_OFF
this allows the FMU to force the safety off on the IO board. Useful in
two cases:

 1) vehicles where the safety switch is impractical or not useful
 (eg. HAB planes or internal combustion motors)

 2) doing ESC calibration on multi-copters
2014-04-28 11:45:20 +02:00
Jean Cyr ab257ebcce Proper data manager restart handling
Introduce SYS_RESTART_TYPE parameter having one of 3 values: boot
restart, inflight restart, or unknown restart, and defaulting to unknown
restart.

px4io.cpp sets this parameter according to the type of restart detected.

dataman.c retrieves this parameter and clears data entries according to
their persistence level. Does nothing if unknown restart.
2014-04-28 00:52:19 -04:00
Lorenz Meier 08408594ec Renamed parameters which changed from RAD to DEGREES to avoid user confusion. Also made naming of the two parameters more consistent. 2014-04-27 16:06:34 +02:00
Lorenz Meier e6d332aa7c Make commander less pedantic about position status 2014-04-27 15:50:53 +02:00
Lorenz Meier c74248c8b1 Merged mpc_rc with master 2014-04-27 15:45:33 +02:00
Lorenz Meier 4a949a9565 Merge pull request #749 from DonLakeFlyer/ArmDisarm
Arm/Disarm duplication removal and support for Disarm in VEHICLE_CMD_COMPONENT_ARM_DISARM
2014-04-26 12:24:42 +02:00
Lorenz Meier 5bd8e6f6b3 Merge pull request #845 from PX4/mag_decl_hotfix
Mag declination hotfix
2014-04-26 12:23:48 +02:00
Lorenz Meier eb520e7dcd Merge pull request #849 from PX4/compile_pedantic
Compile pedantic
2014-04-26 12:22:13 +02:00
Anton Babushkin 84943644d7 mc_pos_control: parameters comments minor fixes 2014-04-25 23:06:32 +02:00
Anton Babushkin a432ed4900 mc_pos_control: convert tilt_max to degrees 2014-04-25 22:53:48 +02:00
Anton Babushkin 2453b354fa Failsafe landing without position control fixed 2014-04-25 22:26:51 +02:00
Anton Babushkin 0c1de81785 Merge branch 'master' into mpc_rc 2014-04-25 21:39:59 +02:00
Lorenz Meier f0298e005a Merge pull request #852 from PX4/sensors_loop
sensors: Keep looping in sensors app even if gyros do not update any mor...
2014-04-25 16:52:53 +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
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
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
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 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 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
Lorenz Meier 267b78f072 Fix of errors triggered by more pedantic compile options 2014-04-21 21:31:30 +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
Anton Babushkin 1f2e972ea6 mavlink: remaining battery scaling fixed 2014-04-21 12:16:45 +02:00
Anton Babushkin 8634780e80 Merge branch 'master' into mpc_rc 2014-04-20 20:10:39 +02:00
Lorenz Meier 2ea32b315f Merged master 2014-04-20 02:04:05 +02:00