tridge60@gmail.com
dab8c0cca8
AP_Var: added EEPROM wear levelling
...
This adds a variable length dummy variable at the front of the EEPROM
when we erase it, which has the effect of moving the location of any
hot variables within the EEPROM. This should improve EEPROM
life. Thanks to Mike for the implementation.
Pair-Programmed-With: Mike Smith
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3234 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-04 06:39:57 +00:00
tridge60@gmail.com
06c4f60490
AP_Var: avoid wearing out EEPROM by re-writing the same value
...
when saving a variable, this avoids EEPROM wear by checking if the
existing value is already the same as the value being written, and
avoiding the write.
Thanks to Mike Smith for the implementation
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3233 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-04 06:39:49 +00:00
tridge60@gmail.com
e099079cc0
AP_Var: fixed a logic bug in APVar::key()
...
We were using && instead of & for a bit check. Thanks to Mike for
spotting this!
Pair-Programmed-With: Mike Smith
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3232 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-04 06:39:40 +00:00
tridge60@gmail.com
b8b8b7e8ca
AP_Var: fill all of EEPROM with 0xFF on erase_all()
...
This wipes all parameter values, and also clears out any waypoints as
the waypoint format could have changed between firmware revisions.
This also ensures that the AP_Var code can't re-use any key values
from the old EEPROM state, which makes us less dependent on the old
EEPROM being in a good state
Pair-Programmed-With: Mike Smith
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3231 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-04 06:39:28 +00:00
tridge60@gmail.com
6075b7ce73
dataflash: fixed some compiler warnings
...
tmp is not needed
Pair-Programmed-With: Mike Smith
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3230 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-04 06:39:14 +00:00
hazyhxj@gmail.com
b110803dcb
Fix NMEA GPS error
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3227 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-04 05:14:42 +00:00
mich146@hotmail.com
5e3e96b236
update "NO_GPS" issue as per Justin Beech
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3225 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-04 04:46:14 +00:00
tridge60@gmail.com
4e71884298
added memory reporting over MAVLink
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3207 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-01 00:52:08 +00:00
tridge60@gmail.com
b6e2970f6f
added memcheck library
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3206 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-01 00:50:31 +00:00
tridge60@gmail.com
f7c58a5dd5
mavlink: imported new version with MEMINFO message
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3205 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-09-01 00:50:13 +00:00
tridge60@gmail.com
aebed8d283
remove MAVLINK_COMM_NUM_BUFFERS
...
this is in GCS_MAVLink.h now
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3201 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-31 05:26:07 +00:00
tridge60@gmail.com
3ae2186021
imported new MAVLink implementation
...
this new implementation reduces code size, and also reduces stack
usage, while avoiding the gcc union stack bug
Note that we will gain even more when we move to the new protocol
version, especially in terms of code size
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3200 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-31 05:23:18 +00:00
analoguedevices@gmail.com
6c79b1c681
Correct the spelling of Michael O's name ;-)
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3197 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-30 20:14:29 +00:00
james.goppert
5b3079bcd6
Fixed debug command.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3196 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-30 17:33:51 +00:00
rmackay9@yahoo.com
f44364fb7b
TradHeli - updated mounting plate files and added sonar mount
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3178 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-27 03:35:45 +00:00
tridge60@gmail.com
f868cd90e4
we should not be calling mavlink_delay() in the CLI
...
(this reverts svn 3050 from Jason)
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3167 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-24 08:17:36 +00:00
joeholdsworth@gmail.com
1e08040002
update to arduino.mk file to allow easier use with cygwin.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3166 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-23 23:02:39 +00:00
joeholdsworth@gmail.com
85bcbef695
nightly check in, version not stable.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3164 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-23 20:36:30 +00:00
mich146@hotmail.com
1a2f26a285
version increment
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3157 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-23 06:27:51 +00:00
tridge60@gmail.com
d4a1e86854
mavlink: don't execute action commands in mavlink_delay()
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3156 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-23 06:16:37 +00:00
mich146@hotmail.com
4a974180b8
Level fix.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3155 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-23 05:52:45 +00:00
joeholdsworth@gmail.com
085ca253be
Checkin before beddy byes
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3154 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-22 21:50:11 +00:00
joeholdsworth@gmail.com
659753d7a6
Amilcar Lucas & Ritchie Wilson's camera code mixed in with ap_mount code, this needs to be separated.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3145 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-21 21:14:02 +00:00
joeholdsworth@gmail.com
bf4058c6e1
change of mind payloads should be split into their separate folders.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3144 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-21 19:58:15 +00:00
joeholdsworth@gmail.com
10d312ff25
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3143 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-21 19:55:54 +00:00
joeholdsworth@gmail.com
0daa9f9952
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3142 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-21 19:33:32 +00:00
joeholdsworth@gmail.com
037de1d6b7
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3141 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-21 18:49:42 +00:00
joeholdsworth@gmail.com
f563930275
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3140 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-21 18:48:28 +00:00
joeholdsworth@gmail.com
8f72948121
Payload libraries, code for things like camera control, mount control antenna control should go here.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3139 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-21 18:33:39 +00:00
jasonshort
69b2d5f411
removed AP_Common ref
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3102 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-14 19:27:40 +00:00
jasonshort
e0425af1f4
hack to fix Motor lights when arming after init.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3101 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-14 18:56:31 +00:00
jasonshort
75114aa93f
hack to fix Motor lights when arming after init.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3100 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-14 18:54:29 +00:00
jasonshort
6b2139221d
Added experimental rate based Loiter and revised RTL. You need to compile with the loiter option set to 1 in APM_Config to try.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3099 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-14 18:18:32 +00:00
jasonshort
c95bb66441
cleared out APM_Config
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3098 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-14 18:15:42 +00:00
jasonshort
d192ceb8f8
upped D filter to 6
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3096 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-14 05:44:29 +00:00
jasonshort
312c0e6b3b
removed throttle_slew - Just wasn't working well enough and added too much complexity
...
moved reading sonar to the 50hz loop so the Mode filter could do it's thing without causing so much latency
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3094 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-14 02:30:37 +00:00
jasonshort
bfa7cc2cb5
lowered error limit to try and reduce RTL dropping from sky.
...
removed minimum for RTL nav speed to see it's Loiter potential (rate based Loiter)
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3093 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 22:51:35 +00:00
jasonshort
56d8da0381
commented out home.alt since it's always 0
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3092 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 22:49:20 +00:00
jasonshort
900d0c1819
fixed missing %d in CTUN
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3091 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 22:45:00 +00:00
tridge60@gmail.com
0bf026e6ad
Compass: added a gain multiplier
...
this adjusts the calibration based on the change in gain between
calibration and runtime
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3090 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 10:39:11 +00:00
rmackay9@yahoo.com
37dd9ac144
TradHeli - fixes to use single PI controller for roll, pitch and yaw (when using an external tail gyro)
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3089 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 09:37:01 +00:00
tridge60@gmail.com
e95d0eb686
added SET_MAG_OFFSETS magnetometer message
...
this allows reset of the mag offsets without wiping your EEPROM
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3088 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 09:00:21 +00:00
tridge60@gmail.com
ab04055c35
Compass: several fixes to compass calibration code
...
this changes the calibration code to require at least 5 good reads
from the compass during initialisation. The calibration is taken as
the average of the 5 values.
This also fixes the expected values for the 3 axes for the 5883 to
match reality.
We also save a bit of code space by adding a common rotate_for_5883L()
routine.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3087 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 08:17:25 +00:00
tridge60@gmail.com
eefb840a85
MAVLink: added missing files from recent update
...
thanks to Randy for spotting this
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3086 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 06:30:29 +00:00
tridge60@gmail.com
5836e27813
we don't have a separate 5883L driver any more
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3085 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 06:30:13 +00:00
tridge60@gmail.com
88cd556c8d
Compass: we don't need MAG_PROTOCOL any more
...
we only have one mag driver now
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3084 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 05:10:19 +00:00
tridge60@gmail.com
c860fd736a
Compass: removed the old 5883L driver
...
we now use a single driver for both mags
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3083 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 05:09:58 +00:00
tridge60@gmail.com
5c68a04c5d
PID: fixed an uninitialised variable
...
we did not initialise derivative to zero
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3082 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 04:46:21 +00:00
tridge60@gmail.com
b1df1d1843
ModeFilter: fixed a shadowed variable
...
mode is a member of the class already, so call the local variable
fmode
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3081 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 04:46:10 +00:00
tridge60@gmail.com
6cf66ee773
MAVLink: pull in latest changes from upstream MAVLink
...
this gives us the new SENSOR_OFFSETS message for debugging sensor
calibration
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3080 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-08-13 04:45:48 +00:00