Andrew Tridgell
c8af70a18d
Plane: make the plane code compatible with the new logging system
...
not actually converted yet
12 years ago
Andrew Tridgell
a329e32ccb
Plane: added gps status to flashlog
12 years ago
Andrew Tridgell
a12323c9fd
Plane: fixed logging for new API
12 years ago
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>
12 years ago
tobias
217b8d7a59
cleanup: use const for struct Location pointers and references
...
this allows the compiler to generate more efficient code
12 years ago
Andrew Tridgell
a69c9ff674
Plane: added logging of DIGICAM events
12 years ago
Andrew Tridgell
de55e19eec
Plane: updates for new dataflash API
12 years ago
Andrew Tridgell
b3213b7113
Plane: fixes for new DataFlash API
12 years ago
Andrew Tridgell
3caaa27526
Plane: fixed build errors in logging
12 years ago
Randy Mackay
7297a1ff83
Plane: renamed RAW dataflash message to IMU
12 years ago
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.
12 years ago
Randy Mackay
6f46f4a7d0
Plane: logging changes to use new faster packet method
...
also RAW message renamed to IMU
12 years ago
Andrew Tridgell
fa3a4c68b6
Plane: use common log reading function
12 years ago
Andrew Tridgell
92c9a4c1ce
Plane: start update logging for new API
12 years ago
Andrew Tridgell
c63c4f22e2
Plane: fixed formatting
12 years ago
Pat Hickey
a14621534c
ArduPlane: port from hal.dataflash to old DataFlash api
12 years ago
Pat Hickey
92b0c302f2
ArduPlane: Ported to AP_HAL
12 years ago
Andrew Tridgell
805a340350
Plane: enable attitude and raw logging in HIL modes
12 years ago
Andrew Tridgell
84300c85d6
APM: make it possible to run the CLI on any serial port
12 years ago
rmackay9
ef727bbb3c
ArduPlane: move to use new INS library instead of IMU library
12 years ago
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
13 years ago
Andrew Tridgell
37cb56f3e1
APM: save another few bytes
13 years ago
Andrew Tridgell
12dc2e79cf
APM: save 100 bytes of memory
...
remove flight_mode_strings array
13 years ago
uncrustify
39ab309b87
uncrustify ArduPlane/Log.pde
13 years ago
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.
13 years ago
Andrew Tridgell
0868bb76e5
APM: fixed SITL build
13 years ago
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
13 years ago
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
13 years ago
Andrew Tridgell
de3c9ce56d
Airspeed: change APM to use new AP_Airspeed library
...
the next step is AHRS dead reckoning
13 years ago
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
13 years ago
Andrew Tridgell
8e01bc3593
MAVlink: update ArduPlane for param fetch during DataFlash erase
...
same changes as for ArduCopter
13 years ago
Andrew Tridgell
8afd196907
APM: adapt ArduPlane for AHRS framework
13 years ago
Andrew Tridgell
d75e883fe8
GCS: get_integrator() is now get_gyro_drift() in DCM
13 years ago
Andrew Tridgell
95ef9206dc
DCM: renorm_sqrt_count is now called renorm_range_count
13 years ago
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.
13 years ago
Andrew Tridgell
8d87aa41b9
APM: Update for DataFlash changes
13 years ago
Andrew Tridgell
f5a3eed1a7
APM: fixed some unsigned/signed warnings
13 years ago
Andrew Tridgell
d81dc21dfe
APM-log: fixed reading of GPS logs
13 years ago
Andrew Tridgell
3f9f3f3416
APM-log: changed to use df_NumPages
...
this copes with different data flash sizes on APM1 and APM2
13 years ago
Andrew Tridgell
e687ce9b3d
mainloop_count should be uint16_t
13 years ago
Andrew Tridgell
71c911f65d
Log: fixed logging dependence on compiler arg eval order
13 years ago
Andrew Tridgell
f25ee899f3
APM: run mavlink loop while erasing logs
13 years ago
Doug Weibel
ca89857854
Changes to logging file system to avoid problems with 0 and 1 page logs
13 years ago
Doug Weibel
502a98dda1
Add hook to dump log filesystem index for debugging
13 years ago
Doug Weibel
88ab4f7d70
Fix for intermittent bug of log #1 starting on page 2 and confusing file system
13 years ago
Doug Weibel
b03de3095e
Add DataFlash.Init before doing a forced log erase on eeprom reset.
...
Add progress indication during log erase
13 years ago
Andrew Tridgell
a048709828
Logs: don't print hundreds of bogus log boundaries
...
this can take quite a long time
13 years ago
Doug Weibel
b05e1d90f5
Change type to support "dump all with -1"
13 years ago
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.
13 years ago
Doug Weibel
27e68234b7
Simplified logging logic for finding start/end of log files
13 years ago