Commit Graph

3777 Commits

Author SHA1 Message Date
Andrew Tridgell 37cabb4cfa fixed dead zone load/save 2012-02-13 16:22:53 +11:00
Andrew Tridgell 150a67c262 fixed PID initialisation 2012-02-13 16:22:53 +11:00
Andrew Tridgell 4c5c9b5d3a 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 47807ec68d 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 d5b96fe9bd make it easy to run simulator under valgrind 2012-02-13 16:22:53 +11:00
Andrew Tridgell 1f05e7dafb fixed types in GPS detect code
using int everywhere is wasteful and non-portable
2012-02-13 16:22:53 +11:00
Andrew Tridgell ecdbfd257a token is 16 bits now 2012-02-13 16:22:53 +11:00
Andrew Tridgell ed2271ceea check sizes in VARTest
ensures the AP types are plain old data
2012-02-13 16:22:52 +11:00
Andrew Tridgell d55a0c3a71 added AP_Param::show_all()
this moves the logic into common code
2012-02-13 16:22:52 +11:00
Andrew Tridgell 0f9adbdae0 token size for first()/next() is now 16 bits 2012-02-13 16:22:52 +11:00
Andrew Tridgell 9175ebe33a 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 617082769a go back to 1024 bytes for variables in EEPROM 2012-02-13 16:22:52 +11:00
Andrew Tridgell 0b3e3ec5c8 added group indexes to GCS_MAVLINK class 2012-02-13 16:22:52 +11:00
Andrew Tridgell 31d28e2181 update VARTest to use exact variables from ArduPlane 2012-02-13 16:22:52 +11:00
Andrew Tridgell 9c5a5473ab added indexes to group info structures 2012-02-13 16:22:52 +11:00
Andrew Tridgell f2a6a31645 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 678a1df3be 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 accaf9bb30 fixed build on arduino 1.0 2012-02-13 16:22:52 +11:00
Andrew Tridgell e85da68fe6 expand parameter area for ArduPlane
this ensures all parameters can be saved without overflow
2012-02-13 16:22:52 +11:00
Andrew Tridgell d4305e0ae2 fixed apm2beta build with AP_Param 2012-02-13 16:22:52 +11:00
Andrew Tridgell 16417b651e 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 3b4cae3cc3 adapted main ACM code for AP_Param 2012-02-13 16:22:52 +11:00
Andrew Tridgell 983192c5d5 tidy up a comment 2012-02-13 16:22:52 +11:00
Andrew Tridgell c9c422539e update ACM MAVLink code for AP_Param 2012-02-13 16:22:52 +11:00
Andrew Tridgell a2d0900460 fixed warning in Log build 2012-02-13 16:22:52 +11:00
Andrew Tridgell bf1eb670e3 update main parameter code for AP_Param in ACM 2012-02-13 16:22:52 +11:00
Andrew Tridgell db96303fa0 convert APM_PI library to AP_Param 2012-02-13 16:22:52 +11:00
Andrew Tridgell 452749149f convert AC_PID library to AP_Param 2012-02-13 16:22:52 +11:00
Andrew Tridgell f9eed9bd9e fixed missing return in D value 2012-02-13 16:22:52 +11:00
Andrew Tridgell 2c3ec5de99 fixed two parameter names 2012-02-13 16:22:51 +11:00
Andrew Tridgell 676ca03977 expose mavlink stream rates as parameters 2012-02-13 16:22:51 +11:00
Andrew Tridgell f760b3c717 restore _fCut that was lost in AP_Param development 2012-02-13 16:22:51 +11:00
Andrew Tridgell 84aef17bb0 fixed initialisation of RC_Channel class 2012-02-13 16:22:51 +11:00
Andrew Tridgell 5418302b38 AP_Param: fixed desktop build 2012-02-13 16:22:51 +11:00
Andrew Tridgell d658bc6f9d desktop: more progmem string functions 2012-02-13 16:22:51 +11:00
Andrew Tridgell f22988163e imported new Parameters code to APM 2012-02-13 16:22:51 +11:00
Andrew Tridgell 81e52e43c1 added some notes on EEPROM speed 2012-02-13 16:22:51 +11:00
Andrew Tridgell e7174bc649 import new Parameters.h for AP_Param to APM 2012-02-13 16:22:51 +11:00
Andrew Tridgell 3d598c8caa implement dump of all vars in CLI using AP_Param 2012-02-13 16:22:51 +11:00
Andrew Tridgell bc0ed62aa9 adapt mainline APM code to AP_Param 2012-02-13 16:22:51 +11:00
Andrew Tridgell 95e107ab75 AP_Param: added generic cast_to_float 2012-02-13 16:22:51 +11:00
Andrew Tridgell 9509c69f42 AP_Param: disable debug ready for production 2012-02-13 16:22:51 +11:00
Andrew Tridgell 5d03f13aa5 AP_Param: make ptype in first() and next() optional 2012-02-13 16:22:51 +11:00
Andrew Tridgell e01af5885f adapt Mavlink_compat.h to AP_Param 2012-02-13 16:22:51 +11:00
Andrew Tridgell 570399ff98 expanded the VARTest testing to all variables 2012-02-13 16:22:51 +11:00
Andrew Tridgell bf4a77da81 convert libraries to new typesafe macros 2012-02-13 16:22:51 +11:00
Andrew Tridgell e8c4ecf9fa added nested group support and validation 2012-02-13 16:22:51 +11:00
Andrew Tridgell 94a86204ee added size of Vector6f 2012-02-13 16:22:51 +11:00
Andrew Tridgell 2792abfce2 demo of AP_Param with ArduPlane parameters 2012-02-13 16:22:51 +11:00
Andrew Tridgell 12dac42174 modify RC_Channel for AP_Param 2012-02-13 16:22:51 +11:00