Commit Graph

59574 Commits

Author SHA1 Message Date
DrZiplok 4632dd2f29 Implement a cast_to_float method for convenience; at a cost of a couple of bytes in the vtable this will save many callers having to play type introspection games.
It might be possible to implement a set of virtual cast operator overrides, but only float lets us return NAN to indicate that a cast can't be made, so for now we'll stick with just this one.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1614 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-08 10:17:45 +00:00
DrZiplok 3108d661d2 Correct knots -> m/sec conversion. Thanks to Paul M. for spotting this.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1613 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-08 07:06:47 +00:00
james.goppert 2584f9a1f1 APO Compiling with new AP_Var!
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1612 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-08 01:58:51 +00:00
james.goppert af1ee477b9 Working on updating AP_Controller/RC_Channel for new AP_Var
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1611 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-07 23:33:12 +00:00
jasonshort f291e862d4 switch compass orientation back to default
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1610 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-07 06:20:08 +00:00
jasonshort db478f6536 beefing up nav
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1609 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-07 06:19:19 +00:00
jasonshort d373278068 trying to improve alt hold.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1608 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-07 06:19:01 +00:00
jasonshort dcccaf4ca7 git-svn-id: https://arducopter.googlecode.com/svn/trunk@1607 f9c3cf11-9bcb-44bc-f272-b75c42450872 2011-02-07 06:18:18 +00:00
jasonshort 7c15a4dc04 setup 0 default for d term where there was a conflict with external dampeners
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1606 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-07 05:59:10 +00:00
jasonshort c3c4fd5439 adjusted filter for faster response
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1605 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-07 05:58:29 +00:00
jasonshort b56bcc25ba upped buffer
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1604 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-07 05:56:54 +00:00
jasonshort fa63a199b8 updated gains
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1603 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-07 05:56:28 +00:00
jasonshort 6fec86ec54 removed debugging code
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1602 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-07 05:55:29 +00:00
jasonshort 9f50924980 updated airpressure test
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1601 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-06 18:50:16 +00:00
jasonshort c512a0ab64 removed D for nav, added extra timer for FBW and Nav.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1600 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-06 07:06:36 +00:00
jasonshort 20a57b8932 added error limit to alt hold
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1599 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-06 07:04:26 +00:00
jasonshort d1e9d62072 git-svn-id: https://arducopter.googlecode.com/svn/trunk@1598 f9c3cf11-9bcb-44bc-f272-b75c42450872 2011-02-06 07:03:28 +00:00
jasonshort ea8acd664f fixed inverted cos error
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1597 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-06 07:02:51 +00:00
jasonshort 76f0d1739b git-svn-id: https://arducopter.googlecode.com/svn/trunk@1596 f9c3cf11-9bcb-44bc-f272-b75c42450872 2011-02-06 07:02:25 +00:00
jasonshort 9ec8e29b7b git-svn-id: https://arducopter.googlecode.com/svn/trunk@1595 f9c3cf11-9bcb-44bc-f272-b75c42450872 2011-02-06 07:01:30 +00:00
jasonshort dee6c8e557 git-svn-id: https://arducopter.googlecode.com/svn/trunk@1594 f9c3cf11-9bcb-44bc-f272-b75c42450872 2011-02-06 07:00:55 +00:00
jasonshort 6fadbb83a7 radio flaps set to 1000
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1593 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-05 19:00:36 +00:00
jasonshort 641aeefbf5 clean-up only
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1592 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-05 06:31:03 +00:00
jasonshort 7b9ede0b29 new Hexa code
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1591 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-05 06:14:44 +00:00
mandrolic 4079127e5d Configurator.Net: Added High/Low watermarks to transmitter controls for calibration
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1590 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-04 21:45:31 +00:00
deweibel e620eb1326 Change MediaTek timestamps to millisecond Time of Day
Add epoch method to return timestamp epoch.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1589 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-01 23:50:36 +00:00
jasonshort 586ed36f41 incremented version
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1585 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-01 05:01:43 +00:00
jasonshort 8fadc32000 added ch7,8 to init for hexa quads
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1584 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-01 05:01:19 +00:00
jasonshort a99ec67d5c updates for CGS
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1583 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-31 17:10:07 +00:00
jasonshort 8e32e2f4c2 Changes from flight testing
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1582 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-31 01:54:07 +00:00
mandrolic a20390ebb3 Configurator.Net: Transmitter Calibration - Max/Min watermarks for indicator controls
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1580 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-30 21:49:14 +00:00
DrZiplok@gmail.com b614aca274 Add a template AP_VarA that defines a variable that is an array of some basic type. This is like AP_VarT for arrays, with minor changes in behaviour consistent with the difference between regular variables and arrays.
Note that AP_VarA arrays are still limited by the constraints on the total size of a variable (AP_Var::k_size_max).

Add a basic unit test for arrays; more are needed.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1579 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-30 20:58:34 +00:00
DrZiplok@gmail.com ca0005db2a Comments, minor consting, use a better target for sizeof in AP_VarT
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1578 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-30 20:14:42 +00:00
DrZiplok@gmail.com b60480fac0 Minor whitespace fixes.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1577 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-30 20:13:07 +00:00
jasonshort 4dcc1a905d FBW bug fixes
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1576 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-30 02:36:03 +00:00
deweibel@gmail.com b3c9bf270f Add FinishWrite method to the DataFlash class to support using an index system.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1575 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-30 01:53:04 +00:00
jasonshort c7f162ed51 New feature prevents startup of motors.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1574 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-29 22:03:50 +00:00
mandrolic bb32628194 Configurator.Net: Added visual indication of origin for gyro/accel indicators
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1573 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-29 09:07:42 +00:00
jasonshort 4cf16f67c4 fixed Current logging output.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1572 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-29 05:55:23 +00:00
jasonshort 70f11ef88d fixed PM logging rate.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1571 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-29 04:58:31 +00:00
levinemax@gmail.com b3334b71bd small fix
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1570 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-28 18:26:17 +00:00
jasonshort 1c9a53ec81 upped the camera behavior for Max
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1569 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-28 05:39:17 +00:00
jasonshort 42c7423802 upped the threshold PWM for Max
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1568 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-28 05:38:26 +00:00
jasonshort f57887ee4a adjust tri frame output to not output 4th motor
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1567 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-28 05:36:33 +00:00
deweibel@gmail.com 3443a7817d Add reversing for PWM outputs in angle_to_pwm case.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1566 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-27 18:16:22 +00:00
mandrolic bf3b5c2f7c Configurator.Net: Mono tweaks, Port list is populated on startup
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1565 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-27 15:58:32 +00:00
mandrolic cedcd47073 Configurator.Net: More tweaks for Mono
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1562 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-26 21:17:44 +00:00
jasonshort 0b2008f581 removed debugging
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1561 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-26 17:22:39 +00:00
jasonshort e6fe75c9aa fixed FBW bugs
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1560 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-26 07:14:54 +00:00
james.goppert 82a257982a Started updating AP_Controller and AP_RcChannel for AP_Var
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1559 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-26 07:05:22 +00:00