Commit Graph

2305 Commits

Author SHA1 Message Date
Andrew Tridgell b2254016e1 desktop: make desktop build more portable
this should help on MacOS

thanks to MikeS for his assistance
2011-11-08 17:26:53 +11:00
Andrew Tridgell 3b52687342 dataflash: type fixup for ReadInt() 2011-11-08 17:26:53 +11:00
Jason Short f80a08bf57 Updated Logs to be C++ compliant 2011-11-07 22:23:48 -08:00
Jason Short 7e49de6596 Update to RTL logic. 2011-11-07 21:30:12 -08:00
Jason Short 7bc6a7a2fa Fix for bad RTL tracking in Autopilot 2011-11-07 21:09:29 -08:00
Andrew Tridgell 2186a5978a Log: fixed a few more casts 2011-11-08 11:59:30 +11:00
Andrew Tridgell f073837ea7 desktop: use the libc printf engine
getting ftoa_engine right was too much work
2011-11-08 11:59:30 +11:00
Andrew Tridgell 6b583869c0 desktop: fixed ultoa_invert()
the string was backwards
2011-11-08 11:13:48 +11:00
Andrew Tridgell fd3154f20d desktop: improved ftoa_engine.c
this still doesn't perfectly match the assembler, but its closer
2011-11-08 11:05:36 +11:00
Andrew Tridgell 87d5581046 ArduCopter: use specific sized data types in a lot of places
this will make the Desktop build more consistent with the real AVR
build, and also with a future ARM build
2011-11-08 11:05:36 +11:00
Andrew Tridgell ecf3d26f43 barometer: fixed a build warning 2011-11-08 11:05:36 +11:00
Jason Short 34a53f6f7d Removed some old debug prints from motors.pde
added ability to not increment I term for traversals.
2011-11-07 14:32:39 -08:00
Andrew Tridgell f3964611e1 autotest: fixed home altitude for CMAC 2011-11-08 08:14:46 +11:00
Andrew Tridgell dacf98e201 HIL: enable CTUN log message in ATTITUDE HIL 2011-11-08 07:58:35 +11:00
Andrew Tridgell a045e4ec7e Log: better way to check for -1 long portably 2011-11-08 07:58:34 +11:00
Jason Short 6d0a32cc65 Alt hold fix 2011-11-07 12:00:37 -08:00
Andrew Tridgell 3b51874a70 autotest: dump all logs 2011-11-07 23:56:59 +11:00
Andrew Tridgell 4113d04f70 Log: make find_last_log_page() portable
this makes it work with platforms with a larger 'long'
2011-11-07 23:50:49 +11:00
Andrew Tridgell acad6b37c4 autotest: fill flash with 0xff on erase 2011-11-07 23:42:18 +11:00
Andrew Tridgell 20ae086842 autotest: dump all GPS points, even if fix==0
for some reason HIL gives fix 0 sometimes
2011-11-07 22:57:32 +11:00
Andrew Tridgell 5e5d86ca09 autotest: enable dumping of DataFlash logs at end of test 2011-11-07 22:56:13 +11:00
Andrew Tridgell a199835632 Desktop: added -w option to wipe eeprom and dataflash 2011-11-07 22:56:13 +11:00
Andrew Tridgell 0775f57a89 Log: fixed a bug where we could index outside an array
when we first start up, num_existing_logs may be zero
2011-11-07 22:56:13 +11:00
Andrew Tridgell eb0756f362 Desktop: added support for DataFlash in Desktop build
this will allow Jason to look at the logs of the quad sim
2011-11-07 22:56:13 +11:00
Andrew Tridgell ee99ec839b digital.c for CLI 2011-11-07 22:56:13 +11:00
Andrew Tridgell 5410dff523 DataFlash: use CPU independent data types
this ensures that the DataFlash API is consistent for different CPU
architectures, which matters for the Desktop build, and will matter
for ARM and other CPUs later
2011-11-07 22:56:13 +11:00
Andrew Tridgell b314fd8cd3 Desktop: enable the CLI in desktop build
this gives access to the CLI menus. You can start the SIL with the -s
switch to set the slider position to CLI
2011-11-07 22:56:13 +11:00
Andrew Tridgell 75d7ee01d1 desktop: fixed 2 crashes in the menu code
handle an empty line gracefully, and use pgm_read_pointer() for
functions pointers in progmem
2011-11-07 22:56:13 +11:00
Andrew Tridgell 152da9c91b added pgm_read_pointer()
this will be used by the menu code to make reading pointers from
progmem portable
2011-11-07 22:56:13 +11:00
Andrew Tridgell 4bad72f8ac autotest: started adding tests for required tools
try to give useful error messages
2011-11-07 22:56:13 +11:00
Jason Short 8ac8ea9c1d Merge branch 'master' of https://code.google.com/p/ardupilot-mega 2011-11-06 22:46:57 -08:00
Jason Short 7522b034ca moved to 200hz update
Zccel Z updates from Aurelio in attitude.pde
lowered baro_alt sanity check
moved user hooks to the medium 10hz loop.
2011-11-06 22:46:39 -08:00
Jason Short 7bf8ef98f5 default top_bottom ratio 1.0 2011-11-06 22:45:07 -08:00
Jason Short ec6169000c default top_bottom ratio 1.0 2011-11-06 22:43:49 -08:00
Jason Short 2521b01c69 Y6 Motors now have top bottom ratio 2011-11-06 22:42:59 -08:00
Andrew Tridgell 11109e4a03 force LANG=C for MacOS awk 2011-11-07 13:33:38 +11:00
unknown 8ca8ca3e73 AltHold - another correction to the manual boost. Hopefully properly transferring building up I terms to g.throttle_cruise 2011-11-06 19:06:13 +08:00
unknown 28032d0561 AltHold - made TradHeli code also use manual_boost 2011-11-06 18:25:13 +08:00
unknown 0aac828eeb Altitude hold bug fix - changed g.throttle_cruise to be updated to steal I term from correct controller 2011-11-06 17:47:24 +08:00
unknown b30387bc5b TradHeli - small change to make throttle_cruise in terms of radio input instead of servo output 2011-11-06 17:40:17 +08:00
unknown c76e1097e3 TradHeli - changed deadzones for throttle to zero (and also reduced for yaw) 2011-11-06 17:37:59 +08:00
Doug Weibel d4fff166cf Add an accessor for the DCM drift correction integrator to monitor performance
Also made the get_health accessor an inline function.
2011-11-05 09:02:23 -06:00
Doug Weibel beb6c4dbf4 Changed the DCM drift correction integrator limit to a vector magnitude of 30 degrees/second.
The drift correction integrator limit previously was near/at the gyro saturation limit.  If we have that much drift there is a serious hardware problem.  30 degrees/second is arbitrary but should handle all temperature variation, etc.
2011-11-05 09:01:20 -06:00
Doug Weibel b105e7fd41 In case of DCM renorm "blow-up" reset the drift correction integrators
This should aid in recovery if we loose the AHRS solution and have to force to initial orientation.  Also removed some old commented out code moved to the IMU object
2011-11-05 08:59:16 -06:00
Jason Short 37883a93f6 Merge branch 'master' of https://code.google.com/p/ardupilot-mega 2011-11-04 21:42:10 -07:00
Jason Short 80c7e135d5 renamed some command variables to align with Arduplane
reworked the arming code and moved the DCM gains out.
updated climb_rate to include sonar data.
2011-11-04 21:41:51 -07:00
unknown 3df9a03e02 TradHeli - fix to allow tail servo to be reversed. Also increase max movement of tail servo to 45 degrees. 2011-11-05 12:31:30 +08:00
Andrew Tridgell 5f85c0dc52 fixed permissions of valgrind log file 2011-11-04 10:05:40 +11:00
Andrew Tridgell 76985029dd autotest: run SIL binary under valgrind
this lets us find uninitialised variables in the APM code, and other
common C/C++ errors
2011-11-04 10:00:06 +11:00
Michael Oborne cfe6e333c9 APM Planner 1.0.89
new camera button in flight planner
misc other
2011-11-03 08:13:27 +08:00