Andrew Tridgell
2f1f5f14f5
autotest: fixed the directory that the git hash is fetched in
2012-02-14 09:06:24 +11:00
Andrew Tridgell
df2ef6ff47
APM: fixed some build warnings
2012-02-14 08:58:56 +11:00
Andrew Tridgell
3907cf81f8
Mavlink: report the corrected pitch via MAVLink
...
this subtracts the TRIM_PITCH_CD from the pitch reported via
MAVLink. That gives a better indication of the true pitch in the tlog
2012-02-14 08:58:56 +11:00
Andrew Tridgell
a1c041b597
use stdint types in the compass code
2012-02-14 08:35:03 +11:00
Andrew Tridgell
6c20ff9492
AP_Param: allow dumping of AP_Vector3f
...
this means the 'show' command in the CLI shows the compass offsets now
2012-02-14 08:34:50 +11:00
Andrew Tridgell
8d88dbdf79
added some AP_Param testing of the compass
2012-02-14 08:34:25 +11:00
Andrew Tridgell
da16ccf993
fixed some printf casts
2012-02-14 08:34:10 +11:00
Andrew Tridgell
c6f3f7065c
APM: the CLI fits nicely on the 1280 again now
...
I find the CLI very useful for testing, so enable it by default on the
1280. Logging is still off by default.
2012-02-14 08:33:49 +11:00
Andrew Tridgell
4ec3857476
GPS: change back to 4Hz for MTK GPS
...
this will hopefully fix the NO_GPS problems that have been regularly
happening in recent months. I will watch the logs carefully to see if
the problem recurs
2012-02-13 22:50:20 +11:00
Andrew Tridgell
e70e1814ac
AP_Baro: fixed some signed/unsigned warnings
...
and a potential bug on timer wrap
2012-02-13 21:39:18 +11:00
Andrew Tridgell
d4572e841c
autotest: fixed displayed git hash in autotest
2012-02-13 20:29:55 +11:00
Andrew Tridgell
6b8b3e2287
autotest: fixed git hash parsing
2012-02-13 18:02:35 +11:00
Andrew Tridgell
550b0be231
move AP_Var code and example into libraries/AP_Var
...
you can use AP_Var by defining USE_AP_VAR
2012-02-13 16:22:53 +11:00
Andrew Tridgell
e7e7450f90
fixed imax load/save in PID
2012-02-13 16:22:53 +11:00
Andrew Tridgell
c497ad9b7e
fixed dead zone load/save
2012-02-13 16:22:53 +11:00
Andrew Tridgell
845d056c18
fixed PID initialisation
2012-02-13 16:22:53 +11:00
Andrew Tridgell
9e4145b2c3
make the sw version different for VARTest
...
so we don't accidentially load bad parameters into ArduPlane
2012-02-13 16:22:53 +11:00
Andrew Tridgell
c6b6898266
RC_Channel_aux: catch invalid function settings
...
a bad function setting would overwrite the heap
2012-02-13 16:22:53 +11:00
Andrew Tridgell
131861b629
make it easy to run simulator under valgrind
2012-02-13 16:22:53 +11:00
Andrew Tridgell
d41c56214c
fixed types in GPS detect code
...
using int everywhere is wasteful and non-portable
2012-02-13 16:22:53 +11:00
Andrew Tridgell
153575a01c
token is 16 bits now
2012-02-13 16:22:53 +11:00
Andrew Tridgell
a948241fa1
check sizes in VARTest
...
ensures the AP types are plain old data
2012-02-13 16:22:52 +11:00
Andrew Tridgell
16a5b5c3ee
added AP_Param::show_all()
...
this moves the logic into common code
2012-02-13 16:22:52 +11:00
Andrew Tridgell
781617cae0
token size for first()/next() is now 16 bits
2012-02-13 16:22:52 +11:00
Andrew Tridgell
ee2cb32a44
change back to 256 max variables in _var_info[]
...
this keeps the header to 24 bits, and allows the token to be 16
bits. If we need more variables we can put them in a nested group.
2012-02-13 16:22:52 +11:00
Andrew Tridgell
50f9d12ad5
go back to 1024 bytes for variables in EEPROM
2012-02-13 16:22:52 +11:00
Andrew Tridgell
f5f6e2d4ec
added group indexes to GCS_MAVLINK class
2012-02-13 16:22:52 +11:00
Andrew Tridgell
7e62a9ce53
update VARTest to use exact variables from ArduPlane
2012-02-13 16:22:52 +11:00
Andrew Tridgell
6cf7015859
added indexes to group info structures
2012-02-13 16:22:52 +11:00
Andrew Tridgell
7621b96a52
AP_Param: added group idx, and change packing of header elements
...
adding a idx element to the GroupInfo will make it less likely that a
developer will change the IDs of group elements, and make it easier to
see that these IDs are important for identifying a variable in EEPROM
The header packing has changed to make it 24 bits on all platforms,
which allows us to lower the EEPROM variable max size to 1024 bytes
again
2012-02-13 16:22:52 +11:00
Andrew Tridgell
711cee9dfa
fixed support for AP_PARAM_SPARE
...
spare group elements are needed if we remove a group parameter
2012-02-13 16:22:52 +11:00
Andrew Tridgell
db8a58f994
fixed build on arduino 1.0
2012-02-13 16:22:52 +11:00
Andrew Tridgell
a8140d9524
expand parameter area for ArduPlane
...
this ensures all parameters can be saved without overflow
2012-02-13 16:22:52 +11:00
Andrew Tridgell
d2a4091716
fixed apm2beta build with AP_Param
2012-02-13 16:22:52 +11:00
Andrew Tridgell
1bf832de2d
the ACM parameters have a max size of 1114 bytes
...
to ensure that all parameters can be saved, expand parameter area by
256 bytes
2012-02-13 16:22:52 +11:00
Andrew Tridgell
1af6f08b1c
adapted main ACM code for AP_Param
2012-02-13 16:22:52 +11:00
Andrew Tridgell
bbc876fcdf
tidy up a comment
2012-02-13 16:22:52 +11:00
Andrew Tridgell
da1526ced2
update ACM MAVLink code for AP_Param
2012-02-13 16:22:52 +11:00
Andrew Tridgell
f363d0542c
fixed warning in Log build
2012-02-13 16:22:52 +11:00
Andrew Tridgell
55d0ad3255
update main parameter code for AP_Param in ACM
2012-02-13 16:22:52 +11:00
Andrew Tridgell
170fdef857
convert APM_PI library to AP_Param
2012-02-13 16:22:52 +11:00
Andrew Tridgell
74e0d2ef2a
convert AC_PID library to AP_Param
2012-02-13 16:22:52 +11:00
Andrew Tridgell
4a9cb731d4
fixed missing return in D value
2012-02-13 16:22:52 +11:00
Andrew Tridgell
9fe8c079e7
fixed two parameter names
2012-02-13 16:22:51 +11:00
Andrew Tridgell
922139b824
expose mavlink stream rates as parameters
2012-02-13 16:22:51 +11:00
Andrew Tridgell
c4b7a3116a
restore _fCut that was lost in AP_Param development
2012-02-13 16:22:51 +11:00
Andrew Tridgell
df77c462a4
fixed initialisation of RC_Channel class
2012-02-13 16:22:51 +11:00
Andrew Tridgell
244d2055ff
AP_Param: fixed desktop build
2012-02-13 16:22:51 +11:00
Andrew Tridgell
c195be594a
desktop: more progmem string functions
2012-02-13 16:22:51 +11:00
Andrew Tridgell
edfb8fe0b7
imported new Parameters code to APM
2012-02-13 16:22:51 +11:00