Commit Graph

12751 Commits

Author SHA1 Message Date
Andrew Tridgell d18c00d6fc Plane: split up altitude handling
this creates altitude.pde for altitude handling, getting ready to add
terrain following
2014-07-24 21:50:19 +10:00
Andrew Tridgell 8ea2133c4b AP_Terrain: provide more height_*() convenience functions
these provide functions that are more convenient for the vehicle code
to use
2014-07-24 21:50:19 +10:00
Andrew Tridgell db506b76fa AP_Terrain: split up code into separate cpp files
this should make it a bit easier to review
2014-07-24 21:50:19 +10:00
Andrew Tridgell 6b53f473d9 GCS_MAVLink: added a new TERRAIN_ALT frame type for missions 2014-07-24 21:50:18 +10:00
Andrew Tridgell 2d9637c156 AP_Terrain: re-arrange disk IO code
add some comments explaining split between IO thread and main code
2014-07-24 21:46:07 +10:00
Andrew Tridgell ee04c7de96 AP_Terrain: hold home location as a special location
this ensures home altitude is always available
2014-07-24 21:46:06 +10:00
Andrew Tridgell 0a3aa23619 AP_Terrain: fixed build on APM2 2014-07-24 21:46:06 +10:00
Andrew Tridgell 2f0279659a AP_Terrain: prevent disk blocks getting stuck
we need to match first on the expected state to ensure we don't get an
invalid block
2014-07-24 21:46:06 +10:00
Andrew Tridgell 28d6e39c4c AP_Terrain: added checking of block CRCs on disk
this allows us to cope with SD card data corruption
2014-07-24 21:46:06 +10:00
Andrew Tridgell 0562907d9f Copter: added AP_Terrain library 2014-07-24 21:46:06 +10:00
Andrew Tridgell 43b2e34242 Plane: fixed txsize check for airspeed info
prevent underflow
2014-07-24 21:46:06 +10:00
Andrew Tridgell 6f538aa556 Plane: handle TERRAIN_CHECK requests 2014-07-24 21:46:06 +10:00
Andrew Tridgell a458f1bf5f AP_Baro: minor improvements to Baro HIL code health check 2014-07-24 21:46:06 +10:00
Andrew Tridgell 0df2dd9092 GCS_MAVLink: added TERRAIN_CHECK and TERRAIN_REPORT messages 2014-07-24 21:45:57 +10:00
Andrew Tridgell eeb4ad56bc AP_Terrain: added checking and reporting messages
this allows the GCS to check the status of the terrain system
2014-07-24 21:45:56 +10:00
Andrew Tridgell 9f76f0276f AP_Terrain: added disk IO for terrain data 2014-07-24 21:45:56 +10:00
Andrew Tridgell 63b5811a7c AP_HAL: added HAL_BOARD_TERRAIN_DIRECTORY 2014-07-24 21:45:56 +10:00
Andrew Tridgell 09214680fe AP_Terrain: request grids around current grid
this ensures we have grids ahead of time
2014-07-24 21:45:56 +10:00
Andrew Tridgell 18e09c2f3e AP_Terrain: added debug code 2014-07-24 21:45:56 +10:00
Andrew Tridgell 32bfeed169 Plane: incorporate terrain mavlink calls 2014-07-24 21:45:47 +10:00
Andrew Tridgell 09518d2d91 AP_Terrain: added mavlink transport of terrain data 2014-07-24 21:45:46 +10:00
Andrew Tridgell e23ee34d95 GCS_MAVLink: added MSG_TERRAIN 2014-07-24 21:45:46 +10:00
Andrew Tridgell 1ecd4b7fb2 GCS_MAVLink: updated terrain messages 2014-07-24 21:45:46 +10:00
Andrew Tridgell 3020d91dcd GCS_MAVLink: keep a bitmap of what mavlink channels are active
- this will allow for looping over active channels in libraries
- expose active channel mask
2014-07-24 21:45:46 +10:00
Andrew Tridgell 1d42eda4da AP_Terrain: started on update() logic 2014-07-24 21:45:46 +10:00
Andrew Tridgell a7eb2ac28c AP_Terrain: implement height_amsl() 2014-07-24 21:45:46 +10:00
Andrew Tridgell e725b2c77e Plane: added terrain object 2014-07-24 21:45:46 +10:00
Andrew Tridgell f26bbb6ddb GCS_MAVLink: added terrain mavlink messages 2014-07-24 21:45:46 +10:00
Andrew Tridgell ee7fc984f0 AP_Terrain: initial structure 2014-07-24 21:44:50 +10:00
Andrew Tridgell 8ef9aa0300 GCS_MAVLink: rebuild MAVLink headers 2014-07-24 21:40:16 +10:00
Andrew Tridgell 3d2460bd42 XML: resolved conflicts in MAV_CMD_ enum
this moves a couple of commands to be MAV_CMD_DO_ commands, after
discussions with Lorenz and Randy
2014-07-24 21:40:16 +10:00
Andrew Tridgell e9fedbdb79 Copter: removed use of removed MAV_CMD_NAV_ commands 2014-07-24 21:40:16 +10:00
Andrew Tridgell feaf9751cc AP_Mission: removed use of MAV_CMD_NAV_VELOCITY and MAV_CMD_NAV_GUIDED 2014-07-24 21:38:31 +10:00
Andrew Tridgell 0f24c43b0c GCS_MAVLink: merged latest changes from upstream 2014-07-24 21:38:31 +10:00
akdslr 2c86f5df94 AP_RangeFinder: Updated RFIND_test example to not use Auto and added more device details 2014-07-24 14:41:55 +10:00
akdslr 8ea64e62f8 VARTest: Removed CONFIG_SONAR_SOURCE and SONAR_SOURCE_ANALOG_PIN since no longer used 2014-07-24 14:41:55 +10:00
akdslr dc67058771 ArduCopter: Removed CONFIG_SONAR_SOURCE, SONAR_SOURCE_ADC, and SONAR_SOURCE_ANALOG_PIN since no longer used 2014-07-24 14:41:55 +10:00
akdslr 06fa2e3f60 ArduCopter test: Renamed the test from sonar to rangefinder and added info on all devices 2014-07-24 14:41:55 +10:00
akdslr a1861125e6 AP_RangeFinder_PulsedLightLRF: Modified to do a 2 byte transfer for the distance read 2014-07-24 14:41:54 +10:00
akdslr b08e3d0ee4 AP_RangeFinder_PX4: Added the destructor to close the file descriptor 2014-07-24 14:41:54 +10:00
akdslr 1083a89b0f Ardurover2 Parameters: Changed the SONAR prefix to RNGFND and renamed the previous SONAR_ parameters 2014-07-24 14:41:54 +10:00
akdslr 2373b291f4 ArduPlane Parameters: Changed the SONAR prefix to RNGFND 2014-07-24 14:41:54 +10:00
akdslr 1354cd7120 ArduCopter Parameters: Changed the SONAR prefix to RNGFND, renamed SONAR_GAIN, and CH6-8 value descriptions 2014-07-24 14:41:54 +10:00
akdslr 54d0db863b AP_RangeFinder: Changed sonar to rangefinder in the parameter descriptions 2014-07-24 14:41:54 +10:00
akdslr 8c6718fe2d AP_RangeFinder: Removed the use of type Auto 2014-07-24 14:41:54 +10:00
Supergoldfish 13563f4344 Copter: added Sonar Voltage reporting to GCS mavlink
Rangefinder class will return 0 if not applicable.
2014-07-23 20:57:36 +09:00
Emile Castelnuovo 1092447360 AP_Compass_VRBrain: add support for two compasses 2014-07-23 20:51:12 +09:00
Emile Castelnuovo 4deafffb3e AP_Compass: VRBRAIN corrected function definition
Add support for two compasses.
2014-07-23 20:47:19 +09:00
Andrew Tridgell a83509f6a3 Plane: fixed compass logging for COMPASS_PRIMARY != 0 2014-07-23 18:42:14 +10:00
Andrew Tridgell 75e8157b4e AntennaTracker: support on/off servos
these servos are either moving at a constant rate, or off. To really
move them accurately we need to know about this and not use a PID.

This doesn't yet support ballerina, but could do with a bit more work.
2014-07-23 18:41:34 +10:00