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
Lucas De Marchi
9c4f93244e
AP_Menu: replace header guard with pragma once
9 years ago
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.
9 years ago
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.
9 years ago
Julien BERAUD
22af74bfe6
AP_Menu: Fix warning
...
Declare member in an appropriate type so there is no warning
9 years ago
Gustavo Jose de Sousa
8e5fc67903
AP_Menu: 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.
10 years ago
Lucas De Marchi
fdc6a75124
AP_Menu: use ARRAY_SIZE macro
10 years ago
Andrew Tridgell
407fbc7261
AP_Menu: remove unused AP_Vehicle.h include
10 years ago
Andrew Tridgell
bd5a58e4c4
AP_Menu: all vehicles now use functors
10 years ago
Andrew Tridgell
85f87b6d9c
AP_Menu: removed BUILD_DELEGATES code
...
no longer needed
10 years ago
Lucas De Marchi
70525fa2c1
AP_Menu: allow to use functor
10 years ago
Andrew Tridgell
3a300575bc
AP_Menu: use APM_BUILD_DELEGATES
10 years ago
Andrew Tridgell
db13f657a8
AP_Menu: support member functions for rover
10 years ago
Andrew Tridgell
a86ec8c786
AP_Menu: fixed double display of prompt
11 years ago
Andrew Tridgell
45381e5341
AP_Menu: added check_for_input() API
...
this allows for async use of the menus, so that a main loop can run
while allowing the user to enter menu commands
11 years ago
Andrew Tridgell
470e5f570d
AP_Menu: dynamically allocate the menu buffers
...
this saves memory when the menus are not used, and allows for the
commandline and argument limits to be changed
11 years ago
Andrew Tridgell
5fdf6ff4f7
AP_Menu: fixed indent-tabs-mode
12 years ago
Pat Hickey
104ad8f6c8
AP_Menu: save a little ram by reducing MENU_ARGS_MAX to 3
...
* we only ever use 3 in arducopter's gyro gain setup
12 years ago
Pat Hickey
3b1150d857
AP_Menu: ported to AP_HAL
12 years ago
Andrew Tridgell
ba4b9b9961
AP_Menu: allow menus to work on ports other than UART0
12 years ago
Pat Hickey
1bf21aae20
AP_Menu: create new library with menu from AP_Common
12 years ago
uncrustify
7d438cd65d
uncrustify libraries/AP_Common/include/menu.h
13 years ago
James Goppert
7ef8578029
Separated controller block class.
...
Also improved documentation of AP_ControllerBlock.
13 years ago
James Goppert
77da85648d
Clean up formatting for AP_Common
13 years ago
DrZiplok@gmail.com
b60480fac0
Minor whitespace fixes.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1577 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
james.goppert
4e4a1bc375
Added inclusion guard to menu.h
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@962 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
DrZiplok
58c1714bd3
Add more documentation to the Menu class.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@569 f9c3cf11-9bcb-44bc-f272-b75c42450872
15 years ago
DrZiplok@gmail.com
4b09c9fade
Fell asleep before committing these, oops.
...
Cut menu entry return type down to int8_t, make menu command checks case-insensitive.
Fixes issue #135
git-svn-id: https://arducopter.googlecode.com/svn/trunk@553 f9c3cf11-9bcb-44bc-f272-b75c42450872
15 years ago
DrZiplok@gmail.com
e2184615d9
Change the way pre-prompt printing works to avoid having to deal with "magic" menu entries.
...
Add a default 'exit' command to back out of a menu.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@546 f9c3cf11-9bcb-44bc-f272-b75c42450872
15 years ago
DrZiplok@gmail.com
064dda10bf
Provide an easy way to print stuff before displaying the prompt.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@545 f9c3cf11-9bcb-44bc-f272-b75c42450872
15 years ago
DrZiplok@gmail.com
eb6113e685
Add a simple commandline menu library.
...
The library has an interface suitable for both interactive and automated use (i.e. Arduino console or GCS operation).
git-svn-id: https://arducopter.googlecode.com/svn/trunk@544 f9c3cf11-9bcb-44bc-f272-b75c42450872
15 years ago