yaozb
13ff67c6c0
消息汉化
5 years ago
Randy Mackay
3b024cc476
AP_Terrain: leave ENABLE as 1 if memory alloc fails
5 years ago
Randy Mackay
5bb6ada292
AP_Terrain: add init_failed
...
allows external caller to determine if terrain database failed to initialise
5 years ago
Randy Mackay
356a5fcc5a
AP_Terrain: constify get_statistics and bitount64
5 years ago
Randy Mackay
cb983913be
AP_Terrain: minor comment fix
5 years ago
Michael du Breuil
2b7a5215af
AP_Terrain: Don't include all of AP_FS
5 years ago
Michael du Breuil
04863f858d
AP_Terrain: Directly include needed headers
6 years ago
Andrew Tridgell
a4860afd32
AP_Terrain: convert to use AP_Filesystem
6 years ago
Pierre Kancir
82de3efc09
AP_Terrain: pass mavlink_message_t by const reference
6 years ago
Peter Barker
9f33fb6085
AP_Terrain: add missing AP_AHRS include
6 years ago
Michael du Breuil
99ff84168c
AP_Terrain: Remove unneeded includes
6 years ago
Michael du Breuil
cbcd959290
AP_Terrain: Fix AP_GPS.h include
6 years ago
Michael du Breuil
fc9b102b28
AP_Terrain: Add singleton
6 years ago
Pierre Kancir
6fbcb21ae3
AP_Terrain: use get_distance_NE instead of location_diff
6 years ago
Pierre Kancir
58cd9361cb
AP_Terrain: move location_update to Location and rename to offset_bearing
6 years ago
Tom Pittenger
966b2652fb
AP_Terrain: rename dataflash to logger
6 years ago
Dr.-Ing. Amilcar do Carmo Lucas
6082b230e8
AP_Terrain: replace location_offset() and get_distance() function calls with Location object member function calls
...
This allows removing duplicated code
6 years ago
Peter Barker
1b4a2c4d6b
AP_Terrain: GCS_MAVLink takes care of mavlink capabilities
6 years ago
Peter Barker
6fc76a32af
GLOBAL: use AP::logger() and strip redundant Log_ from methods
6 years ago
Peter Barker
b47733142f
GLOBAL: rename DataFlash_Class to AP_Logger
6 years ago
Peter Barker
2292113a5b
AP_Terrain: log_terrain_data no longer takes a DataFlash argument
6 years ago
Peter Barker
90b708f9e7
AP_Terrain: adjust for location flags being moved out of union
6 years ago
Peter Barker
2207f52c8e
AP_Terrain: use Rally singleton
6 years ago
Peter Barker
1a853f6f82
AP_Terrain: use ahrs singleton
6 years ago
Michael du Breuil
4299eb9ba8
AP_Terrain: Reduce memory consumption, simplify enable checking
7 years ago
Tom Pittenger
f03c73aeff
AP_Terrain: compiler warning printing %u with signed value
7 years ago
Peter Barker
adde7bc588
AP_Terrain: fix snprintf buffer length warning
...
Also includes fix from Tridge to use MIN() instead of MAX()
7 years ago
Andrew Tridgell
f8542c86b6
AP_Terrain: added support for AP_Terrain for ChibiOS
7 years ago
Peter Barker
ca4f25a78e
AP_Terrain: use GPS singleton
7 years ago
Andrew Tridgell
d175fb2f18
AP_Terrain: removed create() method for objects
...
See discussion here:
https://github.com/ArduPilot/ardupilot/issues/7331
we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach
Thanks to assistance from Lucas, Peter and Francisco
7 years ago
Lucas De Marchi
122f3d110b
AP_Terrain: add static create method
7 years ago
Peter Barker
698f18566b
AP_Terrain: cast to int32_t to avoid warning about signedness
...
../../libraries/AP_Terrain/TerrainIO.cpp: In member function ‘void
AP_Terrain::open_file()’:
../../libraries/AP_Terrain/TerrainIO.cpp:176:46: warning: format ‘%u’
expects argument of type ‘unsigned int’, but argument 5 has type
‘__gnu_cxx::__enable_if<true, double>::__type {aka double}’ [-Wformat=]
abs((uint32_t)block.lon_degrees));
^
../../libraries/AP_Terrain/TerrainIO.cpp:176:46: warning: format ‘%u’
expects argument of type ‘unsigned int’, but argument 7 has type
‘__gnu_cxx::__enable_if<true, double>::__type {aka double}’ [-Wformat=]
8 years ago
Peter Barker
85756b7226
AP_Terrain: eliminate GCS_MAVLINK::send_statustext_all
8 years ago
Andrew Tridgell
c9e140a946
AP_Terrain: removed unused variable
8 years ago
Michael du Breuil
3e2b5269a6
AP_Terrain: fix Coverity issue 91367
...
Also converts to using the get_relative_position_D_home() functions rather then attempting to derive home itself
8 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
26771f5348
AP_Terrain: Use SI units conventions in parameter units
...
Follow the rules from:
http://physics.nist.gov/cuu/Units/units.html
http://physics.nist.gov/cuu/Units/outside.html
and
http://physics.nist.gov/cuu/Units/checklist.html
one further constrain is that only printable (7bit) ASCII characters are allowed
8 years ago
Andrew Tridgell
bbccdce229
AP_Terrain: prevent use of invalid Location
...
loc is not initialised and can cause a fault on startup
8 years ago
Lucas De Marchi
4936fd8623
AP_Terrain: add O_CLOEXEC in places missing it
...
By opening with O_CLOEXEC we make sure we don't leak the file descriptor
when we are exec'ing or calling out subprograms. Right now we currently
don't do it so there's no harm, but it's good practice in Linux to have
it.
8 years ago
murata
c808ee2f49
Global: To nullptr from NULL.
...
RC_Channel: To nullptr from NULL.
AC_Fence: To nullptr from NULL.
AC_Avoidance: To nullptr from NULL.
AC_PrecLand: To nullptr from NULL.
DataFlash: To nullptr from NULL.
SITL: To nullptr from NULL.
GCS_MAVLink: To nullptr from NULL.
DataFlash: To nullptr from NULL.
AP_Compass: To nullptr from NULL.
Global: To nullptr from NULL.
Global: To nullptr from NULL.
8 years ago
Peter Barker
58a03b83ca
AP_Terrain: add missing parameter metadata
8 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
Matthew Brener
06388b0417
Global: Fix typos
9 years ago
Tom Pittenger
28648665b9
AP_Terrain: set param "Enable" to be FLAG_ENABLE
9 years ago
Andrew Tridgell
40d1a23a13
AP_Terrain: use HAVE_PAYLOAD_SPACE()
9 years ago
Randy Mackay
83922f9b65
AP_Terrain: update comments for height_terrain_difference_home
9 years ago
Randy Mackay
d84321be2e
AP_Terrain: height_amsl can correct for non-zero terrain alt at home position
9 years ago
Randy Mackay
7474e827ce
AP_Terrain: get_statistics made public
9 years ago
Lucas De Marchi
8fcf551505
AP_Terrain: replace header guard with pragma once
9 years ago
Luis Vale Gonçalves
f02e13b107
AP_Terrain: libraries_Text_revision
...
text revision of messages
9 years ago
Caio Marcelo de Oliveira Filho
0aa520a273
AP_Terrain: use millis/micros/panic functions
9 years ago