Commit Graph

855 Commits

Author SHA1 Message Date
tridge60@gmail.com c8fd23ac45 allow configuration of motor arming condition
This allows the user to configure their own motor arming condition in
APM_Config.h. For example, the user could set it up for MODE1
transmitters, by using:

 #define MOTOR_ARM_CONDITION (g.rc_3.control_in == 0 && g.rc_1.control_in > 2700)
 #define MOTOR_DISARM_CONDITION (g.rc_3.control_in == 0 && g.rc_1.control_in < -2700)

You could also set it up to use the "throttle cut" switch on a
transmitter, by mapping that to a spare channel.

The default (throttle minimum and maximum/minimum yaw) is the same as
it was before

This patch also adds reporting of motor arming to the GCS, which can
be useful for testing.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1802 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-21 07:30:38 +00:00
tridge60@gmail.com 828f97f474 tridge: report mode switch changes
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1801 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-21 07:30:32 +00:00
tridge60@gmail.com 216379e286 tridge: my config
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1800 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-21 07:30:24 +00:00
tridge60@gmail.com ae9ae7f946 adapt send_text() for typesafe PSTR()
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1799 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-21 07:26:59 +00:00
tridge60@gmail.com a633617eef added -Wformat in Arduino.mk
when building with 'make' we get warnings related to printf() format
strings

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1798 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-21 07:26:03 +00:00
tridge60@gmail.com 860998d337 implemented typesafe PSTR()
This makes PSTR() type safe by using a 1 byte wrapper
structure. Attempts to use the wrong varient of a print function will
generate a compilation error.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1797 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-21 07:25:48 +00:00
jasonshort 66c86e9a87 a basic mission uploader
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1796 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-21 00:51:43 +00:00
mich146@hotmail.com 5008c1656b MavLink Update
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1795 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-20 23:28:42 +00:00
jasonshort ed202447e6 a basic mission uploader
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1794 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-20 21:56:48 +00:00
mich146@hotmail.com bb285a248b implement mavlink messages
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1793 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-20 12:55:51 +00:00
jasonshort 783656b574 Added Y6 support
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1792 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-19 19:21:43 +00:00
tridge60@gmail.com 2850ac6c74 mavlink: support MAV_FRAME_GLOBAL_RELATIVE_ALT
this allows for relative altitude, but global lat/lon

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1791 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-19 10:23:08 +00:00
tridge60@gmail.com d70703aa62 disabled tabs in emacs formatting markers
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1790 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-19 10:20:11 +00:00
tridge60@gmail.com f9469507c0 make it possible to enable RC override on non-HIL setups
this makes it possible to allow a GCS to override RC input values for
non-HIL setups. This gives a way for a GCS to set an arbitrary switch
value, or set a precise PWM value for any control.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1789 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-19 10:18:21 +00:00
tridge60@gmail.com f0458631a3 added send_text_P()
this merges the send_text_P() updates from APM

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1788 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-19 10:14:15 +00:00
tridge60@gmail.com 8ca4986375 mavlink: merged in changes from APM
this fixes waypoint upload

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1787 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-19 08:05:06 +00:00
tridge60@gmail.com 2427931550 added update_events() prototype
this fixes a build error on Linux. See the equivalent commit in APM

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1786 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-18 01:50:46 +00:00
tridge60@gmail.com 51df8d1d9d HIL: fixed a build error with HIL
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1785 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-18 01:50:39 +00:00
tridge60@gmail.com 613d414908 mavlink: reduce the number of message buffers to 2
this is all we need, and it saves us some SRAM

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1784 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-18 01:50:33 +00:00
tridge60@gmail.com c931bde863 added sonar test
useful to check calibration of the sonar

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1783 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-18 01:50:27 +00:00
tridge60@gmail.com 31e93f8198 mavlink: sync with upstream
this syncs with 7e1c274437f09a8a03a5bef990e14b93c8fc8b07 from 
March 17 2011

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1782 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-18 01:34:13 +00:00
tridge60@gmail.com 6268eae835 added dummy save() method to AP_IMU_Shim
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1781 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-18 01:34:00 +00:00
jasonshort acb0525bf6 removed startup_IMU_ground
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1780 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-17 17:47:04 +00:00
jasonshort 94d34ad117 Fix for reversed pitch in SIMPLE mode.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1779 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-17 05:05:16 +00:00
mich146@hotmail.com 42caba7d8e Mavlink update
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1777 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-16 10:09:22 +00:00
jasonshort b66db9f839 fix for Loop timing issue.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1776 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-16 05:43:48 +00:00
jasonshort c1f785df66 removed debug code
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1775 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-15 05:55:51 +00:00
jasonshort 41c9b1edd7 Update to get SIMPLE mode running.
Seems to work!

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1774 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-15 05:54:48 +00:00
jasonshort bd8c72958d Added new Simple mode - Better version of FBW that is offset by initial yaw angle and not north.
Added new navigation control based on bearing_error so we can leverage Crosstrack correction.
I've done limited testing on this.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1773 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-14 06:04:07 +00:00
jasonshort e5fe9231f3 alignment with APM 2.0
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1772 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-13 06:25:38 +00:00
dhcorley@msn.com 1c9635b058 cleaned up unneeded integer in xbee test
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1771 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-11 23:03:56 +00:00
dhcorley@msn.com b652f2d571 Update rawgps cli test with indicator LED.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1770 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-11 23:00:40 +00:00
jasonshort 90aa2d6d83 fix for Logging, motors_out buffer overrun, formatting.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1769 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-11 21:37:37 +00:00
jasonshort f52f27ef67 enable logs default
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1768 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-11 02:49:12 +00:00
jasonshort 844cc5da44 Fixed new Xbee Test bug
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1767 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-10 21:27:22 +00:00
jasonshort 65037481a2 New Xbee Test Implemented
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1766 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-10 19:25:54 +00:00
DrZiplok d279cc49d2 Remove a stale reference to APM_BinComm.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1765 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-10 06:25:02 +00:00
mich146@hotmail.com f255e4ed1e ACM fix old mavlink reference. (use new GCS_mavlink library)
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1764 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-10 01:06:27 +00:00
dhcorley@msn.com ecca178dfe Applied changes for rawgps cli test mode.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1763 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-09 14:48:49 +00:00
jasonshort 8435b3bd25 lots of minor changes, Logs should be working better now.
Pos hold is now called "Loiter" - I don't want to have a flight mode called HOLD POS...



git-svn-id: https://arducopter.googlecode.com/svn/trunk@1761 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-09 07:00:48 +00:00
jasonshort bb715378a1 removed options - not going to go that route without proper GCS support.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1760 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-09 06:38:46 +00:00
jasonshort 49b3f8bbb2 lots of minor changes, Logs should be working better now.
Pos hold is now called "Loiter" - I don't want to have a flight mode called HOLD POS...



git-svn-id: https://arducopter.googlecode.com/svn/trunk@1759 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-09 06:37:09 +00:00
tridge60@gmail.com ded4f8d83f added C coding style headers to a few more files
this helps for people running editors like emacs that can read these
and set the right tab levels

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1758 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-08 12:20:48 +00:00
mich146@hotmail.com 975f8ff006 Mavlink update
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1757 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-08 11:07:58 +00:00
deweibel@gmail.com 92bf4c4e0a Add method definition for set_centripetal()
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1756 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-08 01:47:43 +00:00
jasonshort 9e26bc814a fixed PID setting bug.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1755 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-07 21:22:55 +00:00
jasonshort dd51d0730a moved Mag offsets to "test","stabilize"
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1754 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-07 19:06:29 +00:00
jasonshort 1cc6ba3da9 Added break feature on yaw control. Please verify it works properly before flying.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1753 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-07 17:19:38 +00:00
jasonshort 9b79904a5e Added break feature on yaw control. Please verify it works properly before flying.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1752 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-07 16:59:58 +00:00
jasonshort 6b99e76fcb bug fixes and updates
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1751 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-03-07 06:00:27 +00:00