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
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
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
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
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
34bc88eab5
AP_Param: added generic cast_to_float
2012-02-13 16:22:51 +11:00
Andrew Tridgell
a1057fe738
AP_Param: disable debug ready for production
2012-02-13 16:22:51 +11:00
Andrew Tridgell
7ffb9b462d
AP_Param: make ptype in first() and next() optional
2012-02-13 16:22:51 +11:00
Andrew Tridgell
5c3e059eea
adapt Mavlink_compat.h to AP_Param
2012-02-13 16:22:51 +11:00
Andrew Tridgell
dff75dba96
convert libraries to new typesafe macros
2012-02-13 16:22:51 +11:00
Andrew Tridgell
b6ee5ca982
added nested group support and validation
2012-02-13 16:22:51 +11:00
Andrew Tridgell
30c76664ce
added size of Vector6f
2012-02-13 16:22:51 +11:00
Andrew Tridgell
fc0f1c52ca
modify RC_Channel for AP_Param
2012-02-13 16:22:51 +11:00
Andrew Tridgell
013d66527d
modify the PID library for AP_Param
2012-02-13 16:22:51 +11:00
Andrew Tridgell
78564f6a92
modify the IMU code for AP_Param
2012-02-13 16:22:51 +11:00
Andrew Tridgell
32d997b95f
modify the compass code for AP_Param
2012-02-13 16:22:51 +11:00
Andrew Tridgell
2154288e2b
hacks to get AP_Param to compile
2012-02-13 16:22:50 +11:00
Andrew Tridgell
937f8a4741
new AP_Param subsystem
2012-02-13 16:22:50 +11:00
justinbeech
4b0c71d6ac
Uncommented cold temp compensation after testing. Fixed read throttle so read rate ends up nailing 100hz, not 90hz. minor commenting improvements.
2012-02-13 00:00:06 +00:00
analoguedevices
a07f37f1b4
Removed outdated comment:
...
" // deadzone moved to
//control_in = (abs(control_in) < _dead_zone) ? 0 : control_in;"
2012-02-11 16:51:02 +00:00
Michael Oborne
651bd6953b
fix uint > int issue - for hil
2012-02-11 11:35:59 +08:00
Pat Hickey
fb76aa9ca9
APM_RC_APM2: Add support for CH_10 and CH_11
...
* CH_10 is on APM2 pin A10 (based on A1..A8 convention)
* CH_11 is on APM2 pin A11
* Only the code in enable_out, disable_out, and OutputCh needed to change.
* CH_10 and CH_11 always have an output period of 20ms (50Hz).
2012-02-06 22:11:01 -08:00
Randy Mackay
2f25c1f9f1
AC_PID Library - added example sketch
2012-02-05 17:35:15 +09:00
Randy Mackay
a694e16540
APM_PerfMon - removed because it's too big to use with our limited memory now anyway! I have a backup in case we need to resurrect it in the future.
2012-02-05 11:11:59 +09:00
Jason Short
5185901f79
Added D term to APM_PI - need to refactor this as a parent class and two child classes to save code space, remove dupes
2012-01-28 21:21:43 -08:00
Randy Mackay
b543bbf514
Arduino 1.0 - GPS_IMU - small fix to make it compile. Does anyone use this lib?!
2012-01-28 17:56:56 +09:00
Randy Mackay
8bcc567406
AP_PID, AP_RC_Channel, FastSerial - small changes to make example sketches compile again
2012-01-28 17:54:20 +09:00
Randy Mackay
2e1e34fb9c
Arduino 1.0 - small fix to make AP_Baro_MS5611_test.pde compile under Arduino 1.0
2012-01-28 13:21:35 +09:00
Randy Mackay
52f6e56f72
AP_ADC library - tiny fix to make example sketch work after some changes to AP_PeriodicProcess library
2012-01-28 13:12:19 +09:00
Randy Mackay
98f3386ea0
Arduino 1.0 - changed all #includes of "WProgram.h", "wiring.h" and "WConstants.h to "Arduino.h".
...
Modified FastSerial's write function to return size_t (number of bytes written).
2012-01-28 12:25:47 +09:00
Randy Mackay
443a9c0ea7
OpticalFlow - fixed minor compiler warnings and moved chip select to A3 for APM2
2012-01-26 23:35:49 +09:00
Randy Mackay
f27b41179b
Sonar - changed default pin to A0
2012-01-26 22:50:48 +09:00
Randy Mackay
13caa24515
Optical Flow - added overflow check
2012-01-25 21:45:52 +09:00
Pat Hickey
ef60642bb2
APM_RC examples: add calls to enable_out after init
2012-01-24 09:09:08 -08:00
Andrew Tridgell
9bb92ff4ac
fixed example in PID library
2012-01-23 08:47:46 +11:00
Pat Hickey
a13e371d1e
APM_RC: PWM outputs are disabled by default on init
2012-01-22 12:03:11 -08:00
Pat Hickey
47204921e9
APM_RC enable_out and disable_out added to APM1 and APM2
...
* Outputs still enabled by default
2012-01-22 12:03:11 -08:00
Jason Short
0e58efca89
Removed Gyro filter, In the end it doesn't help and I think it could actually hurt gyro integration.
2012-01-20 22:52:29 -08:00
Michael Oborne
e71266c258
change rc norm_output to scale evenly across the entire range
2012-01-20 16:24:55 +08:00
Andrew Tridgell
20aef3a8b8
added a simple DCM library example
2012-01-18 21:25:19 +11:00
Andrew Tridgell
4b8e2e701c
fixed Oilpan test for new library structure
2012-01-18 20:31:58 +11:00
Doug Weibel
e109992c12
Add a CLI setup action to reset the magnetometer offsets
...
Since the magnetometer offsets are not available through the MAVLink parameter interface (since they are an AP_Var vector) this little feature allows them to be reset from the CLI. Useful if you somehow get bad offsets or if you change magnetometer. If you have a bad set of large offset values I have seen issues with the nulling algorithm have trouble converging to the proper values. I have never seen it have trouble converging from 0/0/0, so this could be a useful feature from time to time.
2012-01-15 16:15:08 -07:00