Andrew Tridgell
dc23ad4275
MAVLink: merged in the stack saving changes from ArduPlane
2011-09-18 11:37:24 +10:00
Andrew Tridgell
87ddd50c2a
remove unsued MSG_LOCAL_LOCATION
...
this saves us a bit of code
2011-09-18 11:07:24 +10:00
Andrew Tridgell
5042ca8e9e
rework the MAVLink send code to avoid excessive stack usage
...
this avoids a varient of the gcc excessive stack usage bug, by
wrapping the send calls in NOINLINE functions. This saves us a lot of
stack space, and strangely enough produces slightly smaller code!
2011-09-18 11:05:21 +10:00
Andrew Tridgell
edd7e509d9
MAVLink: enable separate MAVLink helpers
...
this makes the core MAVLink functions into library calls, instead of
being inlined. The resulting code size doesn't change, but it means we
can safely call MAVLink functions from multiple places without causing
undue code bloat
2011-09-18 11:03:27 +10:00
Andrew Tridgell
3fc0b4c673
script to generate frame sizes from .lst files
...
this is used by http://apm.tridgell.net
2011-09-18 09:31:50 +10:00
Janne M
eb7bd2586c
Merge branch 'divider'
2011-09-17 23:56:41 +03:00
Janne M
b5cfbd10ae
Added voltage divider, input voltage and amps per volt to parameters.
2011-09-17 22:32:19 +03:00
Jason Short
2f961ad315
Merge branch 'master' of https://code.google.com/p/ardupilot-mega
2011-09-17 12:23:22 -07:00
Jason Short
99065d5035
Added a GPS watchdog to stop navigating if we loose signal.
2011-09-17 12:23:16 -07:00
Amilcar Lucas
1dca64f190
Merge branch 'master' of https://code.google.com/p/ardupilot-mega
2011-09-17 20:25:49 +02:00
Amilcar Lucas
227ce0a92d
Merge some small misc improvements from APM_Camera branch
2011-09-17 20:25:31 +02:00
Jason Short
0b701f7351
Reverted to current_loc.alt in MSG_VFR_HUD and MSG_Location
2011-09-17 11:16:13 -07:00
Michael Oborne
0f7b317a8d
APM Planner 1.0.70
...
fix's
2011-09-17 23:49:32 +08:00
Michael Oborne
cae10dc8f6
Merge branch 'master' of https://code.google.com/p/ardupilot-mega
2011-09-17 21:23:14 +08:00
Michael Oborne
39640e8d94
APM Planner 1.0.69
...
prep for ac2 2.0.43 - simple mode
modify some scaling in Config
add hud speed warning. add link quality and time to HUD
fix ac2 logs, relative alt.
prep for mavlink 1.0
add time to tlog > plain text conversion
2011-09-17 21:22:07 +08:00
rmackay9
c825e76a88
ArduCopter - small changes to fix compile errors when optical flow enabled
2011-09-17 22:09:18 +09:00
Andrew Tridgell
19781d5e4a
put output of CPUInfo test in git
2011-09-17 15:06:17 +10:00
Andrew Tridgell
d4a068416f
fixed bit-logic for simple modes
2011-09-17 14:58:02 +10:00
Andrew Tridgell
8b90ad84f6
fixed ArduCopter HIL build
2011-09-17 14:58:02 +10:00
Andrew Tridgell
3c69404d5b
fixed build of OpticalFlow code
2011-09-17 14:58:02 +10:00
Andrew Tridgell
a835912d93
ADC: randomise the sampling rate
...
this is based on suggestions from Kari and Mike, and should reduce the
aliasing effects we get from the simple averaging
2011-09-17 14:58:02 +10:00
Andrew Tridgell
ba6c58a33c
build: cope with more depths for libraries
...
this finds the libraries at more levels up from the current directory
2011-09-17 14:58:02 +10:00
Andrew Tridgell
d5b19840f0
Tools: added CPUInfo sketch
...
this shows the approximate cost of a wide range of common operations,
and the sizes of most data types
2011-09-17 14:58:02 +10:00
Andrew Tridgell
840c256fe3
ADC: show timing information in ADC test
2011-09-17 14:58:02 +10:00
Andrew Tridgell
197b1d140a
show noise levels in ADC test
2011-09-17 14:58:02 +10:00
Andrew Tridgell
1d68953416
ADC: the bottom 3 bits of ADC output are always zero
...
its a 12 bit ADC .... silly of me to think the bottom 3 bits are
valid!
2011-09-17 14:58:02 +10:00
Andrew Tridgell
bd30840518
updated ADC test for new API
2011-09-17 14:58:02 +10:00
Andrew Tridgell
9af7021a98
change ADC sample rate to 1kHz
...
this costs us about 9% of our CPU, but should make aliasing much less
of a problem.
2011-09-17 14:58:02 +10:00
Andrew Tridgell
acb4538073
RangeFinder: use new ADC interface
...
the new interface gives values 8 times as large as previously
2011-09-17 14:58:02 +10:00
Andrew Tridgell
58fa51b680
ArduPilot updates for new DCM code
...
G_Dt is no longer needed, and scale ADC values by 8 to match old
constants
2011-09-17 14:58:02 +10:00
Andrew Tridgell
0425f4be54
updates for new DCM code
...
G_Dt is no longer needed by the DCM
2011-09-17 14:58:02 +10:00
Andrew Tridgell
9314dcaa89
DCM: re-work the DCM to use the new IMU/ADC features
...
this gives us higher resolution DCM calculations, with much more
accurate timing of the update delta time.
2011-09-17 14:58:02 +10:00
Andrew Tridgell
8b3d9400e5
IMU: re-work the IMU library to take advantage of the ADC Ch6() call
...
This changes the IMU code to read 6 synchronised ADC channels at one
time, giving us matching values, and exposing the exact averaging time
to callers
2011-09-17 14:58:02 +10:00
Andrew Tridgell
70bf945d40
ADC: re-work for ADC code for full resolution and accurate timing
...
this changes the ADC code to return the full resolution of the
sensors. It also adds a new Ch6() interface that returns 6 channels at
once, so the IMU can read 3 accelerometers and 3 gyros at once, and
get the exact time that the values were accumulated over
2011-09-17 14:58:02 +10:00
Andrew Tridgell
49d96726d5
MAVLink: only send HEARTBEAT and SYS_STATUS during initialisation
...
I am concerned that some of the mavlink send routines may impact on
sensor calibration, so its safer to just send the minimum information
to keep the GCS happy
2011-09-17 14:58:02 +10:00
Andrew Tridgell
3a9b7d6458
GPS: change example serial rate to 115200
...
this matches default for AP/AC
2011-09-17 14:58:02 +10:00
Andrew Tridgell
a5d2e96dc6
barometer: print a message on barometer init in example code
...
this helps track down initialisation problems
2011-09-17 14:58:02 +10:00
Jason Short
4607bdb4b5
fixed naming for opt flow
2011-09-16 19:26:17 -07:00
Jason Short
45778a4e81
added sin and cos yaw from DCM, renamed "get" function because it doesn't return a value.
2011-09-16 19:24:57 -07:00
Jason Short
f79b8de5e8
removed DCM reference from OPT FLOW
2011-09-16 19:17:50 -07:00
Jason Short
cd72e6bea9
roughed in an expo option idea
...
made min and max values 1100, 1900
removed hard coded init for camera values
2011-09-16 19:06:53 -07:00
Jason Short
1689a9857c
removed unused pde file
2011-09-16 18:57:35 -07:00
Jason Short
9c5cba56eb
Added low voltage code flashing code.
2011-09-16 18:56:51 -07:00
Jason Short
9bcbe70e59
Merge branch 'master' of https://code.google.com/p/ardupilot-mega
2011-09-16 18:35:14 -07:00
Jason Short
b948e0f02b
Lowered Loiter_I - higher value didn't test well.
2011-09-16 18:24:42 -07:00
Jason Short
129c13e065
Fixed CIRCLE mode trig error
...
made loiter_radius * 100 in Params
updated gains
2011-09-16 16:54:45 -07:00
analoguedevices
80d5c6ac15
comment change to test Git pull
2011-09-16 08:13:33 +00:00
Jason Short
8d0a2fae9b
cleanup
...
added more ifdef for optflow
2011-09-15 23:41:15 -07:00
Jason Short
d29cfbcee3
Integration of optical flow
...
bug fixes for new Simple mode
increased Baro filter by 2 fields
2011-09-15 23:33:00 -07:00
Janne M
d5e5240e19
Issue #415 : Modified spotlight search string. Added UPLOAD_PROTOCOL parameter to makefile to use different programmer.
2011-09-15 22:38:22 +03:00