Andrew Tridgell
3289041428
Plane: added MAVLink SYSTEM_TIME message
2013-10-24 14:22:47 +11:00
Andrew Tridgell
035ac3800a
Plane: use G_Dt for acro angle integration
...
also cleanup some other uses of performance timing
2013-10-12 13:30:27 +11:00
Randy Mackay
c64d444b5a
Plane: integrate BattMonitor
2013-10-03 11:16:08 +09:00
Andrew Tridgell
3c177867a4
Plane: allow enable/disable of camera log messages in CLI
2013-07-10 12:23:36 +10:00
Paul Riseborough
d62636d309
Plane: added new TECS altitude controller
...
Includes improvements to takeoff/launch detect logic to support hand
launching for X-8 flight
2013-07-04 16:56:57 +10:00
Andrew Tridgell
93cd0f9a31
Plane: switch to new AP_Scheduler
...
this gives us more accurate task scheduling in ArduPlane, plus better
monitoring of task timing (via SCHED_DEBUG)
2013-06-04 13:34:58 +10:00
Andrew Tridgell
fb9bf21522
Plane: allow channel mapping of first 4 channels
...
this makes it easier to support DSM and SBUS radios
2013-06-03 16:23:48 +10:00
Andrew Tridgell
91a04ab654
Plane: fixed headers for mode logging
2013-05-31 14:04:03 +10:00
Andrew Tridgell
dd633fcf3f
Plane: make voltage and battery capacity failsafe settable at runtime
...
this also fixes issue #292
2013-05-22 20:33:57 +10:00
Andrew Tridgell
c5f1570f32
Plane: fixed flash logging of ATT
...
fixed types to be int16
2013-05-08 14:21:32 +10:00
Andrew Tridgell
bdf0a2da69
Plane: log mode number as well as mode string
...
this makes graphing mode changes easier
2013-04-28 14:58:13 +10:00
Andrew Tridgell
1956d9c2dc
Plane: show modes as strings in log
2013-04-28 14:47:59 +10:00
Randy Mackay
f47a2e951a
Plane: add I2C error count to PM message
2013-04-26 22:39:56 +09:00
Andrew Tridgell
2e5834cc7f
Plane: print flight mode as string in logs
2013-04-20 15:18:10 +10:00
Andrew Tridgell
991d6598ef
Plane: log board voltage
2013-04-20 13:52:36 +10:00
Andrew Tridgell
5c553852ed
Plane: when logging is disabled don't include DataFlash at all
2013-04-20 13:52:36 +10:00
Andrew Tridgell
0c5b393919
Plane: added compass logging
2013-04-20 13:52:36 +10:00
Andrew Tridgell
c56f338fe0
Plane: convert to new logging system
2013-04-20 13:52:36 +10:00
Andrew Tridgell
c8af70a18d
Plane: make the plane code compatible with the new logging system
...
not actually converted yet
2013-04-20 13:52:36 +10:00
Andrew Tridgell
a329e32ccb
Plane: added gps status to flashlog
2013-04-19 10:24:20 +10:00
Andrew Tridgell
a12323c9fd
Plane: fixed logging for new API
2013-04-17 21:34:56 +10:00
Andrew Tridgell
11eb0cfce1
Plane: update for new AP_Navigation controller class
...
this switches ArduPlane over to use the L1 navigation controller, via
a generic nav_controller object pointer.
Note that the nav_controller controls all types of navigation now,
including level flight and heading hold. This provides a cleaner
abstraction than the old method of special case navigation handling
Pair-Programmed-With: Paul Riseborough <p_riseborough@live.com.au>
2013-04-12 12:48:09 +10:00
tobias
217b8d7a59
cleanup: use const for struct Location pointers and references
...
this allows the compiler to generate more efficient code
2013-04-09 12:10:32 +10:00
Andrew Tridgell
a69c9ff674
Plane: added logging of DIGICAM events
2013-04-02 13:08:38 +11:00
Andrew Tridgell
de55e19eec
Plane: updates for new dataflash API
2013-03-01 07:18:26 +11:00
Andrew Tridgell
b3213b7113
Plane: fixes for new DataFlash API
2013-03-01 07:18:25 +11:00
Andrew Tridgell
3caaa27526
Plane: fixed build errors in logging
2013-01-27 12:58:50 +11:00
Randy Mackay
7297a1ff83
Plane: renamed RAW dataflash message to IMU
2013-01-26 17:29:29 +09:00
Randy Mackay
e674626fd6
Plane: rename CUR and CURR to CURRENT for logging
...
Based on user complaint that log was enabled/disabled using CUR while
message that appeared in log was CURR.
2013-01-26 17:19:42 +09:00
Randy Mackay
6f46f4a7d0
Plane: logging changes to use new faster packet method
...
also RAW message renamed to IMU
2013-01-26 17:07:21 +09:00
Andrew Tridgell
fa3a4c68b6
Plane: use common log reading function
2013-01-15 14:03:51 +11:00
Andrew Tridgell
92c9a4c1ce
Plane: start update logging for new API
2013-01-13 17:31:42 +11:00
Andrew Tridgell
c63c4f22e2
Plane: fixed formatting
2012-12-20 14:53:22 +11:00
Pat Hickey
a14621534c
ArduPlane: port from hal.dataflash to old DataFlash api
2012-12-20 14:51:36 +11:00
Pat Hickey
92b0c302f2
ArduPlane: Ported to AP_HAL
2012-12-20 14:51:36 +11:00
Andrew Tridgell
805a340350
Plane: enable attitude and raw logging in HIL modes
2012-12-04 11:13:33 +11:00
Andrew Tridgell
84300c85d6
APM: make it possible to run the CLI on any serial port
2012-11-21 21:41:34 +11:00
rmackay9
ef727bbb3c
ArduPlane: move to use new INS library instead of IMU library
2012-11-07 19:21:03 +09:00
Andrew Tridgell
cebb67e1df
APM: removed the unused sonar code
...
when we start supporting a sonar we'll add a AP_Sonar library, like
AP_Airspeed
2012-09-19 19:35:22 +10:00
Andrew Tridgell
37cb56f3e1
APM: save another few bytes
2012-09-18 13:58:50 +10:00
Andrew Tridgell
12dc2e79cf
APM: save 100 bytes of memory
...
remove flight_mode_strings array
2012-09-18 13:58:49 +10:00
uncrustify
39ab309b87
uncrustify ArduPlane/Log.pde
2012-08-21 19:19:50 -07:00
rmackay9
360c1198a6
ArduPlane: more "int" to "int16_t" and added cast to (int) in printf statements.
...
Also modified dump_log function's last_log_num to be int16_t which matches return type from DataFlash's find_last_log method.
2012-08-18 18:55:14 +09:00
Andrew Tridgell
0868bb76e5
APM: fixed SITL build
2012-08-17 16:28:45 +10:00
Andrew Tridgell
5bfd1200d6
APM: change variables to use _cm, _cd and _ms suffix for units
...
this makes it less likely that we mix up units
2012-08-08 12:12:30 +10:00
Andrew Tridgell
7e697e4abd
APM: switch back to old nav_roll calculation
...
the old nav_roll will be used for the 2.50 release to prevent the need
for re-tuning. For the release after that we will use the new
calculation
2012-07-26 10:03:36 +10:00
Andrew Tridgell
de3c9ce56d
Airspeed: change APM to use new AP_Airspeed library
...
the next step is AHRS dead reckoning
2012-07-16 11:21:50 +10:00
Andrew Tridgell
66544a5db2
Log: don't print '+' while erasing logs
...
we no longer do page based erase, so printing a + every 128 pages
makes no sense
2012-05-22 20:10:29 -07:00
Andrew Tridgell
8e01bc3593
MAVlink: update ArduPlane for param fetch during DataFlash erase
...
same changes as for ArduCopter
2012-05-22 16:13:35 +10:00
Andrew Tridgell
8afd196907
APM: adapt ArduPlane for AHRS framework
2012-03-19 17:29:02 +11:00
Andrew Tridgell
d75e883fe8
GCS: get_integrator() is now get_gyro_drift() in DCM
2012-03-10 10:34:33 +11:00
Andrew Tridgell
95ef9206dc
DCM: renorm_sqrt_count is now called renorm_range_count
2012-02-23 08:16:08 +11:00
Doug Weibel
69c7598db2
Update battery monitoring code for ArduPlane
...
Fixes compatibility for APM2. Also a significant update to the battery monitoring code: We previously had monitoring modes for individual cell voltages for 3 and 4 cell lipos. These have been removed as they were never really supported (the cell voltages were computed but were not reported or recorded anywhere). Also, some clean-up/prep work was done for supporting monitoring 2 separate battery packs. The CLI battery and current monitoring tests were consolidated into 1 test.
2012-01-15 16:10:28 -07:00
Andrew Tridgell
8d87aa41b9
APM: Update for DataFlash changes
2011-12-28 16:00:49 +11:00
Andrew Tridgell
f5a3eed1a7
APM: fixed some unsigned/signed warnings
2011-12-26 19:17:11 +11:00
Andrew Tridgell
d81dc21dfe
APM-log: fixed reading of GPS logs
2011-12-26 19:17:11 +11:00
Andrew Tridgell
3f9f3f3416
APM-log: changed to use df_NumPages
...
this copes with different data flash sizes on APM1 and APM2
2011-12-26 19:17:11 +11:00
Andrew Tridgell
e687ce9b3d
mainloop_count should be uint16_t
2011-12-21 23:31:38 +11:00
Andrew Tridgell
71c911f65d
Log: fixed logging dependence on compiler arg eval order
2011-12-18 17:31:45 +11:00
Andrew Tridgell
f25ee899f3
APM: run mavlink loop while erasing logs
2011-12-18 10:19:52 +11:00
Doug Weibel
ca89857854
Changes to logging file system to avoid problems with 0 and 1 page logs
2011-12-13 20:09:07 -07:00
Doug Weibel
502a98dda1
Add hook to dump log filesystem index for debugging
2011-12-07 08:13:30 -07:00
Doug Weibel
88ab4f7d70
Fix for intermittent bug of log #1 starting on page 2 and confusing file system
2011-11-28 19:43:10 -07:00
Doug Weibel
b03de3095e
Add DataFlash.Init before doing a forced log erase on eeprom reset.
...
Add progress indication during log erase
2011-11-28 19:42:27 -07:00
Andrew Tridgell
a048709828
Logs: don't print hundreds of bogus log boundaries
...
this can take quite a long time
2011-11-26 17:02:55 +11:00
Doug Weibel
b05e1d90f5
Change type to support "dump all with -1"
2011-11-24 18:55:33 -07:00
Doug Weibel
0f428bd43a
Logging cleanup. Fixed missing cast, removed erase warning, added -1 to dump all option, and fix intermittent bug for log number 1.
2011-11-24 18:55:33 -07:00
Doug Weibel
27e68234b7
Simplified logging logic for finding start/end of log files
2011-11-24 18:55:32 -07:00
Doug Weibel
244eeea34a
Rework logging file system to be more robust
2011-11-22 20:20:17 -07:00
Andrew Tridgell
9ea0fc9539
Log: prevent looping forever
...
this happened with an empty dataflash
2011-11-20 19:06:24 +11:00
Jason Short
7ffa2c4347
shortened strings
2011-11-19 14:02:45 -08:00
Doug Weibel
88f5669104
Remaining changes to the logging file system.
...
With these changes the logging system will allow overwriting of logs with no loss of functionality. I have tested (successfully) logging with the Dataflash being filled and overwriting previous files. I have also tested with a single long file that partially overwrites itself.
2011-11-17 21:25:51 -07:00
Doug Weibel
f752c4b799
Change to logging file system.
...
This commit is somewhat temporary as I have come up with a better scheme and will be modifying this. Just making this commit in case I need to roll back
2011-11-17 21:25:51 -07:00
Doug Weibel
0433cd6d69
Missed hunk for last commit
2011-11-15 20:43:00 -07:00
Doug Weibel
9fe554236b
Add logging of DCM drift correction integrator in PM
...
This may be a temporary feature… Mostly added to check new (lower) integrator limit.
2011-11-15 20:42:59 -07:00
Andrew Tridgell
92471aead2
Log: better way to check for -1 long portably
2011-11-08 07:58:34 +11:00
Andrew Tridgell
2bd451b445
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
ae1e1c940f
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
1118d26f03
fixed "Free RAM" display on bootup
2011-10-28 21:34:10 +11:00
Doug Weibel
645b9c1d48
Initial rewrite of command logic.
...
Changes mission structure so that conditional and immediate commands are located between associated waypoints instead of after the second waypoint.
2011-10-27 13:45:52 -06:00
Andrew Tridgell
63ac6bcd94
use memcheck_available_memory() instead of freeRAM()
...
this gives a more accurate view of free memory
2011-10-09 22:08:59 +11:00
Andrew Tridgell
e61d742345
GCS: make the two GCS links gcs0 and gcs3
...
the artifical separation between 'gcs' and 'hil' just leads to
confusion. This also simplifies the code a bit more, and saves us a
bit more text
2011-09-19 11:04:02 +10:00
Andrew Tridgell
e0dc1271d6
imported ArduPlane from ArduPilotMega svn
2011-09-09 11:29:39 +10:00