Commit Graph

35 Commits

Author SHA1 Message Date
Lucas De Marchi 1b07dabeb7 Replace prog_char and prog_char_t with char
prog_char and prog_char_t are now the same as char on supported
platforms. So, just change all places that use them and prefer char
instead.

AVR-specific places were not changed.
2015-10-30 14:35:30 +09:00
Lucas De Marchi 831d8acca5 Remove use of PROGMEM
Now variables don't have to be declared with PROGMEM anymore, so remove
them. This was automated with:

    git grep -l -z PROGMEM | xargs -0 sed -i 's/ PROGMEM / /g'
    git grep -l -z PROGMEM | xargs -0 sed -i 's/PROGMEM//g'

The 2 commands were done so we don't leave behind spurious spaces.

AVR-specific places were not changed.
2015-10-30 14:35:16 +09:00
Lucas De Marchi 2c38e31c93 Remove use of PSTR
The PSTR is already define as a NOP for all supported platforms. It's
only needed for AVR so here we remove all the uses throughout the
codebase.

This was automated with a simple python script so it also converts
places which spans to multiple lines, removing the matching parentheses.

AVR-specific places were not changed.
2015-10-30 14:35:04 +09:00
Gustavo Jose de Sousa 023f56aa70 AP_Limits: standardize inclusion of libaries headers
This commit changes the way libraries headers are included in source files:

 - If the header is in the same directory the source belongs to, so the
 notation '#include ""' is used with the path relative to the directory
 containing the source.

 - If the header is outside the directory containing the source, then we use
 the notation '#include <>' with the path relative to libraries folder.

Some of the advantages of such approach:

 - Only one search path for libraries headers.

 - OSs like Windows may have a better lookup time.
2015-08-11 16:38:18 +10:00
Andrew Tridgell 2d9e9879a2 AP_Limits: convert to using StorageManager 2014-08-13 18:46:43 +10:00
Andrew Tridgell 612ede81f4 AP_Limits: fix for new AP_Math API
Pair-Programmed-With: Brandon Jones <brnjones@gmail.com>
2013-08-05 10:23:57 +10:00
Andrew Tridgell c28ef033a2 AP_Limits: fixed indent-tabs-mode 2013-05-30 09:52:00 +10:00
Randy Mackay 7f79398989 AP_Limits: fixed return of AP_Int8 parameters from object
we should return the base type, not the parameter, or callers could
use set on the result
2013-04-23 23:13:54 +10:00
tobias 217b8d7a59 cleanup: use const for struct Location pointers and references
this allows the compiler to generate more efficient code
2013-04-09 12:10:32 +10:00
Andrew Tridgell 98a55bf2a1 AP_Limits: removed old declaration 2013-01-13 20:46:44 +11:00
rmackay9 45b6dbf580 AP_Limit: small fixes to make parameter descriptions appear in mission planner 2013-01-02 18:50:03 +09:00
Andrew Tridgell ceb3f577d8 libraries: use new math functions 2012-12-20 14:53:22 +11:00
Pat Hickey 7622b725c9 AP_Limits: fixes to use hal.storage for eeprom access 2012-12-20 14:52:28 +11:00
Pat Hickey b0b3fa33b4 AP_Limits: fix for AP_Param var_info registration in AP_Limit_Module
* AP_Limit_Module class does not have its own var_info table.
2012-12-20 14:52:28 +11:00
Pat Hickey 304afd45e1 AP_Limits: export all internal headers from AP_Limits.h 2012-12-20 14:51:40 +11:00
Andrew Tridgell 9b3ed0b683 AP_Limits: updates for new AP_Param API 2012-12-20 14:51:39 +11:00
Andrew Tridgell 6ee32ea872 AP_Limits: reverted parameter doc changes 2012-12-20 14:51:37 +11:00
Pat Hickey 9f9dfc7c63 AP_Limits: fix spacing to 80 columns, use standard cpp header guard conventions
* No idea what was going on there. Confusing.
2012-12-20 14:51:26 +11:00
Pat Hickey 3f1d9d7f69 AP_Param: #include <AP_Param.h> fixups for libraries & sketches
* I mostly went through with grep and added an #include <AP_Param.h> below
  every #include <AP_Common.h>. Not all of these example sketches might
  strictly need AP_Param.
2012-12-20 14:51:19 +11:00
Andrew Tridgell 10b8030e62 AP_Limits: fixed some memory cast warnings 2012-11-19 08:42:36 +11:00
rmackay9 bff3417d29 AP_Limit_Geofence: reduce maximum number of fence points to 6 from 20 to save memory 2012-10-22 16:34:25 +09:00
uncrustify 40a4777d31 uncrustify libraries/AP_Limits/AP_Limit_Geofence.cpp 2012-08-21 19:19:52 -07:00
uncrustify 6fc94828b8 uncrustify libraries/AP_Limits/AP_Limit_Geofence.h 2012-08-21 19:03:33 -07:00
uncrustify 4c8a9eb57d uncrustify libraries/AP_Limits/AP_Limit_Module.h 2012-08-21 19:03:33 -07:00
uncrustify f5ae336073 uncrustify libraries/AP_Limits/AP_Limit_Altitude.h 2012-08-21 19:03:32 -07:00
uncrustify 65e518faed uncrustify libraries/AP_Limits/AP_Limit_GPSLock.h 2012-08-21 19:03:32 -07:00
uncrustify 3aad66b909 uncrustify libraries/AP_Limits/AP_Limits.h 2012-08-21 19:03:32 -07:00
uncrustify 0fc400e43e uncrustify libraries/AP_Limits/AP_Limits.cpp 2012-08-21 19:03:32 -07:00
uncrustify 900ece6ef4 uncrustify libraries/AP_Limits/AP_Limit_Altitude.cpp 2012-08-21 19:03:32 -07:00
uncrustify 406eb1430c uncrustify libraries/AP_Limits/AP_Limit_GPSLock.cpp 2012-08-21 19:03:32 -07:00
uncrustify 065cdfe7d0 uncrustify libraries/AP_Limits/AP_Limit_Module.cpp 2012-08-21 19:03:32 -07:00
rmackay9 2e77691ca1 AP_Limits: change order of initialisation of class variables to remove compiler warnings. 2012-08-18 12:51:32 +09:00
Andrew Tridgell 518d6365ff AP_Param: update remaining libraries for new constructor syntax 2012-08-08 12:11:57 +10:00
Andreas M. Antonopoulos 7262b0429a AP_Limits: experimental "bounce" mode. 2012-07-31 18:39:58 -07:00
Andreas M. Antonopoulos c73f7ef3ab AP_Limits library, provides modular "limits" such as altitude and geo-fencing. 2012-07-14 19:26:17 -07:00