Commit Graph

1377 Commits

Author SHA1 Message Date
Amilcar Lucas 5bf21d5159 Fix manual values mapping 2011-09-11 02:36:39 +02:00
Amilcar Lucas a78de771d4 Moved enum values around to make code simpler to read and use 2011-09-11 02:34:47 +02:00
Amilcar Lucas 5fc771f9d8 Added a comment about lower half of the array 2011-09-10 23:58:25 +02:00
Amilcar Lucas 93e13ace97 Added comments and TODO 2011-09-10 23:57:27 +02:00
Amilcar Lucas f60969a5d5 Added comments explaining when should the function be used 2011-09-10 23:36:47 +02:00
Amilcar Lucas 329df04157 Egg_drop has a 0..100 range 2011-09-10 23:35:23 +02:00
Andrew Tridgell 6d059b8eba Revert "added support for AP_ADC MAVLink packet"
This reverts commit a65a2dda2c1bfa95437880227a3abddc95b329f5.

I am reverting this not for any sane reason, but because my 3 APM
boards now lock up on any I2C operation, and I don't know why. I can't
see how this change could have caused it, but I don't want to take the
chance.
2011-09-10 22:00:29 +02:00
Andrew Tridgell a2d602b090 added support for AP_ADC MAVLink packet
this adds AP_ADC, which sends raw ADC 16 bit values for all 6 ADC
channels at the Extra3 MAVLink stream rate. Extra3 was previously
unused
2011-09-10 14:18:15 +02:00
Andrew Tridgell bf7d62e788 mavlink: import new version with AP_ADC packet
this adds the AP_ADC packet which gives us raw ADC values
2011-09-10 14:17:45 +02:00
Amilcar Lucas ada409855a Moved a camera mount function call, out of the servos update function 2011-09-10 13:47:09 +02:00
Amilcar Lucas b977007bdf Moved a function from radio.pde to the RC_Channel_aux library. Now its more readable and reusable 2011-09-10 13:26:29 +02:00
Amilcar Lucas 9e80f2e920 This is the real HEAD of the APM_Camera branch. Seams that lots of changes got lost in the SVN to GIT port 2011-09-09 16:18:38 +02:00
Amilcar Lucas 581603c3b7 This is the real HEAD of the APM_Camera branch. Seams that lots of changes got lost in the SVN to GIT port 2011-09-09 16:02:22 +02:00
Andrew Tridgell 6e2f231688 rename main pde file for arduino requirements 2011-09-09 11:52:25 +10:00
Andrew Tridgell 1ca13fcd3b move Frame into ArduCopter 2011-09-09 11:52:15 +10:00
Andrew Tridgell a1b2cc7229 import APM_Camera branch from SVN 2011-09-09 11:45:13 +10:00
Andrew Tridgell 59962e320a import Tools directory 2011-09-09 11:31:32 +10:00
Andrew Tridgell 89fa70520f imported ArduPlane from ArduPilotMega svn 2011-09-09 11:29:39 +10:00
Andrew Tridgell be8864f424 renamed top level directories
ArduCopterMega -> ArduCopter
added archives directory for old code
2011-09-09 11:27:41 +10:00
jasonshort 3680c65d89 Fixed camera reversing issue.
moved camera back to 50hz refresh to smoothness.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@3299 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-08 05:01:49 +00:00
jasonshort 985b7307a5 Fixed camera reversing issue.
moved camera back to 50hz refresh to smoothness.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@3298 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-08 04:59:44 +00:00
jasonshort 3b80bc8c58 Adding reverse to Channel Raw output (unscaled output) to fix camera reversing.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3297 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-08 04:58:42 +00:00
jasonshort 725c741c76 Reset_hold_I no longer clears throttle_I value for return to alt hold
Removed Baro Init in Auto Mode.
increased Rate Error limit on Alt Hold
Slightly decreased alt P to reduce pulsing motors
Added rate limit for nav so we can reduce initial pitch to target.
Using MINIMUM_THROTTLE value to test for Reseting Alt Hold now. 
Fixed extra Log formatting statement in CTUN.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@3294 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-07 16:43:06 +00:00
jasonshort d1e2149179 Cleanup
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3293 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-07 04:56:19 +00:00
jasonshort b322587213 trying to avoid I term build up on an unarmed copter prepping to take off in Auto mode.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3292 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-07 04:44:01 +00:00
jasonshort bc75df047e simplified and cleaned up logs.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3291 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-07 01:22:29 +00:00
jasonshort 29b7708933 made CTUN require armed motors to lessen the size of the logs.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3281 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-05 22:21:44 +00:00
jasonshort c7accd697d Upped some gains on alt hold based on testing.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3280 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-05 18:52:26 +00:00
jasonshort e9cce02016 Upped some gains on Nav based on testing.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3279 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-05 18:48:06 +00:00
jasonshort bb49ba1757 Enabling Crosstrack correction.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3278 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-05 18:47:27 +00:00
joeholdsworth@gmail.com 7977cddc13 updated make file for cygwin compatibility
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3277 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-05 17:15:01 +00:00
jasonshort c86e53e922 Fixed Log formatting
Fixed Alt Hold setting error.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@3276 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-05 17:06:08 +00:00
jasonshort 51473501bc Shortened loiter PI name to "HLD_LON_" and "HLD_LAT_"
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3273 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-05 16:00:49 +00:00
tridge60@gmail.com f61aa4d68c updated XML MAVLink definitions
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3272 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-05 06:19:39 +00:00
tridge60@gmail.com 8b5731fcad make the Xbee anti-brick delay configurabe
and change default to 2s

git-svn-id: https://arducopter.googlecode.com/svn/trunk@3269 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-05 05:12:13 +00:00
jasonshort 47c3be156b removed unused variables, functions,
moved camera to 10hz loop



git-svn-id: https://arducopter.googlecode.com/svn/trunk@3268 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-05 05:09:07 +00:00
jasonshort 2e3ae1a30e Changed bit shifts to division, relying on the compiler.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3265 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-05 04:32:17 +00:00
jasonshort 135dfd1fd4 2.0.40 -
added separate reset for rate based nav. This allows Wind and throttle Iterms to avoid being cleared when moving between nav modes.


git-svn-id: https://arducopter.googlecode.com/svn/trunk@3257 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-05 01:30:31 +00:00
tridge60@gmail.com 453c474481 fixed crosstrack return value when disabled
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3256 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-05 01:16:02 +00:00
tridge60@gmail.com 9516b97ab9 fixed uninitialised variables
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3255 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-05 01:15:55 +00:00
tridge60@gmail.com fc0c75963b renamed ACM_PI to APM_PI to fix build
the library name needs to match the header name for the arduino build
to work

git-svn-id: https://arducopter.googlecode.com/svn/trunk@3254 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-05 01:15:24 +00:00
jasonshort 2ebcc08b06 Adding ACM_PI
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3253 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-05 00:56:50 +00:00
jasonshort 0cdc3d85ad 2.0.40
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3252 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-05 00:15:36 +00:00
tridge60@gmail.com 5b30a58491 added MAVLink message queueing
this ensures we never block while writing a MAVLink message to a
serial port, by checking the number of available bytes in the serial
transmit buffer and deferring any message that would cause a blocking
write.

This should prevent the main loop from clagging up due to excessive
telemetry data being sent

git-svn-id: https://arducopter.googlecode.com/svn/trunk@3251 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-04 23:56:26 +00:00
tridge60@gmail.com 9169fff986 let the user know that EEPROM is being erased
it takes about 10-12 seconds, so its nice to know whats going on

git-svn-id: https://arducopter.googlecode.com/svn/trunk@3250 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-04 23:56:19 +00:00
tridge60@gmail.com 48c99c400a fixed some compiler warnings
the junk variables are not needed

git-svn-id: https://arducopter.googlecode.com/svn/trunk@3249 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-04 23:56:11 +00:00
tridge60@gmail.com f2ea0b4fd8 BetterSerial has txspace() now
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3248 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-04 22:52:22 +00:00
tridge60@gmail.com 6cfb9a9c2b replace space() with txspace()
space() was actually intended to be tx buffer space, it just had a
bug. The name txspace() is clearer however, and should prevent
confusion as to which buffer its for

git-svn-id: https://arducopter.googlecode.com/svn/trunk@3247 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-04 22:52:11 +00:00
tridge60@gmail.com 2dde50366f added comm_get_txspace() to GCS_MAVLink
this gives us the number of bytes available in the transmit buffer for
a mavlink channel

git-svn-id: https://arducopter.googlecode.com/svn/trunk@3246 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-04 21:23:24 +00:00
tridge60@gmail.com 85a8d1b5c5 added txspace() method to FastSerial
this returns the number of bytes available in the transmit buffer

git-svn-id: https://arducopter.googlecode.com/svn/trunk@3245 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-04 21:23:15 +00:00