Randy Mackay
4de5f67a91
Copter: replace wp_nav.get_target_alt with get_destination_alt
12 years ago
Randy Mackay
5b93990e41
Copter: removed next_WP
...
Use the wp_nav.get_target_alt or controller_desired_alt in it's place
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
Randy Mackay
1dcd46bffc
Copter: reduce compiler warnings
12 years ago
Randy Mackay
40f6416b3d
Copter: update Log_Read_Compass comment
12 years ago
Randy Mackay
f9539384a1
Copter: rename failsafe to failsafe_radio
...
Makes way for separation of failsafes for throttle, gps and gcs
12 years ago
Randy Mackay
998511f506
Copter: use unsigned long for dataflash log for gps time
...
Updated some formatting of comments in the same file
12 years ago
Randy Mackay
6b2b69535f
Copter: Compass log stores/retrieves motor offsets
12 years ago
Andrew Tridgell
637ecd5279
Copter: updates for new dataflash API
12 years ago
Andrew Tridgell
9a3bd17cfb
Copter: fixes for new DataFlash API
12 years ago
Randy Mackay
c8f09ac219
Copter: fix compile error for PX4 re Compass logging
12 years ago
Randy Mackay
cbde042ec5
Copter: remove non-inav loiter and wp controllers
...
lon_speed, lat_speed changed to float
do_takeoff, do_land now set roll-pitch, yaw and nav modes specifically
removed fast_corners functionality (may need to be reimplemented with
new inertial nav controllers)
12 years ago
Randy Mackay
609676e26c
Copter: add logging of compass values
...
Removed rarely used ITERM because we didn't have enough bits in the log
mask
12 years ago
Randy Mackay
67c69a19ee
Copter: remove baro-only alt hold
...
Saves 8 bytes of memory and more importantly simplifies the alt hold
calculations
12 years ago
Randy Mackay
ce370bab0c
Copter: rename CUR and CURR to CURRENT for logging
...
Based on user complaint that enable/disable was using CUR while message
was appearing as CURR
12 years ago
Randy Mackay
fb1358a629
Copter: make all message output csv
12 years ago
Jonathan Challinger
6565d83e73
InertialNav: Fixed signs, remove body-frame rotation, apply correction at 100hz.
12 years ago
James Bielman
5631f865b2
Update floating point calculations to use floats instead of doubles.
...
- Allows use of hardware floating point on the Cortex-M4.
- Added "f" suffix to floating point literals.
- Call floating point versions of stdlib math functions.
12 years ago
Andrew Tridgell
56f22f9226
Copter: use common log reading function
12 years ago
Andrew Tridgell
72c8a14e76
Copter: fix trad heli log build
12 years ago
Andrew Tridgell
78fd5bb23f
Copter: get rid of remaining Log.pde warnings
12 years ago
Andrew Tridgell
3039c37f95
Copter: use macros from common header
12 years ago
Pat Hickey
d7eeeab79e
ArduCopter: fix new style Log.pde build for PX4.
...
randy - you should please review these changes to make sure you wanted
to have the int16_t type in all of these structs, or how you want to
convert all these other integer types to int16_t if you do need it that
way.
12 years ago
Randy Mackay
87627d883b
ArduCopter: use new logging method for remaining packet types
...
Additional changes include renaming RAW dataflash type to IMU
12 years ago
Andrew Tridgell
af478d52bc
Copter: use the new logging methods for 2 packet types
...
the rest still need to be converted
12 years ago
Andrew Tridgell
91ad870f11
Copter: check bitmask in more logging functions
12 years ago
Andrew Tridgell
4236b10edc
Copter: fixed board ID string
12 years ago
Andrew Tridgell
17a63dc76a
Copter: fixes for AP_HAL merge
12 years ago
rmackay9
672fdfbf71
ArduCopter: added ERR dataflash message
...
Failsafe events changed to errors so they are more obvious.
Errors recorded to dataflash for failure to init compass and optical flow sensor.
Errors recorded for pwm failure.
Resolved a compile error when dataflash logging is disabled.
12 years ago
rmackay9
92e271e517
AP_InertialNav: increase baro delay to 0.5 sec (was 0.2sec) to allow slower baro updates on APM1
12 years ago
rmackay9
466097b383
ArduCopter: use inertial nav for current altitude and climb rate
12 years ago
rmackay9
b786cf40f7
ArduCopter: change GPS dataflash message to output unfiltered gps lat and lon
12 years ago
Pat Hickey
7af03127f6
ArduCopter: more work
12 years ago
Pat Hickey
d9e0bbbbab
ArduCopter: first pass at AP_HAL porting
...
* changed all the byte types to uint8_t
* fixed up much of the serial stuff
12 years ago
Jason Short
19ae5c30eb
ACM : Formatting
12 years ago
rmackay9
154e3c33f7
ArduCopter, AP_InertialNav: consolidated ThirdOrderComplementaryFilter into AP_InertialNav to save about 200bytes of RAM
12 years ago
rmackay9
9dd978576b
ArduCopter: auto yaw changes to allow pilot override of yaw during missions
...
Added set_yaw_mode to better control of yaw controller changes and variable initialisation.
Replaced AUTO_YAW mode with separate yaw controllers YAW_LOOK_AT_NEXT_WP, YAW_LOOK_AT_LOCATION, YAW_LOOK_AT_HEADING.
Pilot manual override of yaw causes yaw to change to YAW_HOLD (i.e. manual yaw) until next waypoint is reached.
Added get_yaw_slew function to control how quickly autopilot turns copter
Changed YAW_LOOK_AHEAD to use GPS heading and moved to new get_look_ahead_yaw function in Attitude.pde
Renamed variables: target_bearing->wp_bearing, original_target_bearing->original_wp_bearing.
Removed auto_yaw_tracking and auto_yaw variables and update_auto_yaw function as they are no longer needed.
Simplified MAV_CMD_CONDITION_YAW handling (do_yaw). We lose ability to control direction of turn and ability to do long panorama shots but it now works between waypoints and save 20bytes.
12 years ago
rmackay9
3a90fc77f9
ArduCopter: add dataflash logging of camera events
12 years ago
rmackay9
072ffec493
ArduCopter: allow INERTIAL_NAV to be enabled separately for horizontal and vertical position
12 years ago
Andrew Tridgell
bcae83c4f6
ACM: make it possible to run CLI on radio port in ArduCopter
12 years ago
rmackay9
810da878e7
ArduCopter: performance monitoring - changed loop counters to uint16_t.
...
Removed an unused items from dataflash logging of Performance.
12 years ago
rmackay9
07a7a1acd8
ArduCopter: replaced digitalRead and digitalWrite with faster calls
...
improved performance logging to dataflash
12 years ago
Jason Short
be63481a8c
ACM : Logging.pde formatting
12 years ago
Jason Short
4b5e0a5046
ACM Logging Events
12 years ago
Jason Short
6dba79e3a7
ACM Log, formatting
12 years ago
rmackay9
b13264c884
AP_InertialNav: reanme AP_InertialNav and ThirdOrderCompFilter classes to resolve desktop build compiler errors
12 years ago
rmackay9
1f801714e8
ArduCopter: incorporate new version of inertial navigation
...
Moved several navigation functions from ArduCopter.pde to navigation.pde
12 years ago
rmackay9
a1b4ec6d0e
ArduCopter: move to use new INS library instead of IMU library
12 years ago
Andrew Tridgell
9592be5af7
ACM: saved some more memory for strings
12 years ago
rmackay9
78316adf75
ArduCopter: replace Serial.print with Serial.print_P to save memory.
...
Includes replacing flight_mode_strings with print_flight_mode function.
SendDebug macro replaced with direct Serial.print_P calls.
12 years ago