Andrew Tridgell
b231112957
DCM: renorm_sqrt_count is now called renorm_range_count
2012-02-23 08:16:08 +11:00
Doug Weibel
fd8dc84fac
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
b108b907e0
APM: Update for DataFlash changes
2011-12-28 16:00:49 +11:00
Andrew Tridgell
4cd4987ae7
APM: fixed some unsigned/signed warnings
2011-12-26 19:17:11 +11:00
Andrew Tridgell
d09c344ab8
APM-log: fixed reading of GPS logs
2011-12-26 19:17:11 +11:00
Andrew Tridgell
94cbbf6f28
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
0aab4da1a1
mainloop_count should be uint16_t
2011-12-21 23:31:38 +11:00
Andrew Tridgell
54b8aab0ac
Log: fixed logging dependence on compiler arg eval order
2011-12-18 17:31:45 +11:00
Andrew Tridgell
8a7d064842
APM: run mavlink loop while erasing logs
2011-12-18 10:19:52 +11:00
Doug Weibel
a77f91fa4e
Changes to logging file system to avoid problems with 0 and 1 page logs
2011-12-13 20:09:07 -07:00
Doug Weibel
4f6f9a6be4
Add hook to dump log filesystem index for debugging
2011-12-07 08:13:30 -07:00
Doug Weibel
b3b218fa40
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
aa6c336479
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
fb21e619fe
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
516216f159
Change type to support "dump all with -1"
2011-11-24 18:55:33 -07:00
Doug Weibel
4a07bb3127
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
06c88cf07b
Simplified logging logic for finding start/end of log files
2011-11-24 18:55:32 -07:00
Doug Weibel
e02d615c8a
Rework logging file system to be more robust
2011-11-22 20:20:17 -07:00
Andrew Tridgell
d9f32ce5b8
Log: prevent looping forever
...
this happened with an empty dataflash
2011-11-20 19:06:24 +11:00
Jason Short
014204409a
shortened strings
2011-11-19 14:02:45 -08:00
Doug Weibel
0bc31fa236
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
a11ea12ca8
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
b23dd36f6d
Missed hunk for last commit
2011-11-15 20:43:00 -07:00
Doug Weibel
b7494774f7
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
a045e4ec7e
Log: better way to check for -1 long portably
2011-11-08 07:58:34 +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
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
4a92048ef0
fixed "Free RAM" display on bootup
2011-10-28 21:34:10 +11:00
Doug Weibel
1cd3c21774
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
e927cf94d7
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
de18df06b5
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
89fa70520f
imported ArduPlane from ArduPilotMega svn
2011-09-09 11:29:39 +10:00