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
Murilo Belluzzo
0b86532b5c
Global: Remove '\r' character from all source code files
8 years ago
LukeMike
fde5992b6d
VRBRAIN: updated AP_HAL_VRBRAIN
9 years ago
Lucas De Marchi
9aa49cda93
Global: remove system_initializing() from scheduler
...
This is not used anymore.
9 years ago
Lucas De Marchi
bf24d0ef31
AP_HAL_VRBRAIN: use init() method without arguments
...
Override the init() method from parent class that doesn't have a
parameter since it's not used here.
9 years ago
Caio Marcelo de Oliveira Filho
cbaa57c7be
AP_HAL_VRBRAIN: remove unused functions
9 years ago
Caio Marcelo de Oliveira Filho
7662c2e73f
AP_HAL_VRBRAIN: implement new AP_HAL functions
...
Implement the new AP_HAL functions and use them in the Scheduler when
possible.
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
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.
9 years ago
Lucas De Marchi
e9d92c446c
AP_HAL_VRBRAIN: Scheduler: implement variadic version of panic()
9 years ago
Lucas De Marchi
ad61a93c14
AP_HAL: turn panic() into a variadic method
...
Change the declaration on all HAL implementations so panic() in future
may implement a printf-like interface.
9 years ago
Gustavo Jose de Sousa
f714540d8b
AP_HAL_VRBRAIN: 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
Andrew Tridgell
3a9d7363ea
HAL_VRBRain: fixed functor comparison
10 years ago
Emile Castelnuovo
92e0bc3a2f
AP_HAL_VRBRAIN: updates to libraries for new boards
10 years ago
Andrew Tridgell
e143acd8bf
HAL_VRBRAIN: minimise use of hrt_absolute_time()
11 years ago
Andrew Tridgell
071323a736
HAL_VRBRAIN: added millis64() and micros64()
11 years ago
LukeMike
dd1cab3ab8
HAL_VRBRAIN: updated analog drivers and scheduler driver to latest official version
11 years ago
Emile Castelnuovo
201332caef
AP_HAL: New VRBRAIN board definition and libraries
11 years ago
Andrew Tridgell
bf2dd141e9
HAL_PX4: support uartE for 2nd GPS
11 years ago
Andrew Tridgell
0b25ff0a16
HAL_PX4: added uartD
11 years ago
Andrew Tridgell
8dc6b758f3
HAL_PX4: switch to delay_microseconds_semaphore() for UART timer
...
this may prevent some timing jitter on the GPS UARTs
11 years ago
Andrew Tridgell
5800c2a2c8
HAL_PX4: prevent excessive writes on startup from blocking
...
this could cause copter on PX4 to hang on startup
11 years ago
Andrew Tridgell
622f0dcc1d
HAL_PX4: prevent threads running before subsystems are initialised
...
this fixes a bug where the timer thread would hang waiting for the
console on startup. This caused the "hit enter" behaviour with recent
PX4 bugs, as AnalogIn tried to read from fd==0, which was a console
read
11 years ago
Andrew Tridgell
1c091cbca5
HAL_PX4: fixed a scheduler bug that affects UART IO
...
we need to detect if we are in a timer task using a PID, not a
flag. This is the same type of bug I fixed last week, but now fixed
properly.
The bug could well be the "USB bug" that Craig has been chasing
11 years ago
Andrew Tridgell
d973730b88
HAL_PX4: use hrt timer and semaphores to improve timing
...
this gives much more accurate microsecond delays, while also ensuring
we yield the CPU when possible
11 years ago
Andrew Tridgell
63bee0b2d8
HAL_PX4: disable checks for in_timerprocess
...
these are not valid in this form for the way the timer thread works on
PX4.
11 years ago
Andrew Tridgell
67db1cedaa
HAL_PX4: fixed delay_microseconds() on PX4
...
we could underflow and delay a very long time!
12 years ago
Andrew Tridgell
942ae70651
HAL_PX4: updates for AP_HAL::MemberProc
12 years ago
Andrew Tridgell
7ec242146d
HAL_PX4: update for new scheduler API
12 years ago
Andrew Tridgell
fb56feb6b2
HAL_PX4: support all analog input pins, with scaling
...
this allows voltage/current/Vcc sensing on FMUv2
12 years ago
Andrew Tridgell
fa107bdb58
PX4: moved UART handling to its own thread
...
this prevents slow writes to the SD card from interfering with MAVLink
or GPS serial communication
12 years ago
Andrew Tridgell
7082e0f8aa
AP_HAL: added hold_in_bootloader parameter to scheduler->reboot()
12 years ago
Andrew Tridgell
e5f19e314d
PX4: systemreset() now takes a boolean argument
...
this chooses whether to stay in the bootloader
12 years ago
Julian Oes
56e94d70e9
PX4: Adaptations to latest build changes
12 years ago
Andrew Tridgell
af7381e9e0
AP_HAL: added register_io_process()
...
this is used to register a low priority IO task. Used for file IO in
DataFlash_File.cpp
12 years ago
Andrew Tridgell
8e2a20bea8
HAL_PX4: enable ttyACM0 as main console, ttyS1 as telemetry port
12 years ago
Andrew Tridgell
02b4ecc273
HAL_PX4: get RC input from PX4IO board
...
this allows us to support DSM and SBUS receivers
12 years ago
Andrew Tridgell
8f2f4b1bc5
HAL_PX4: use write() to /dev/pwm_output for servo output
...
this lowest the cost of PWM output a lot, but relies on the new I2C
based IO firmware
12 years ago
Andrew Tridgell
70227d5d93
HAL_PX4: added scheduler performance counters
12 years ago
Andrew Tridgell
966b9b9b9c
HAL_PX4: format panic messages with a newline
12 years ago
Andrew Tridgell
952df2fced
HAL_PX4: new buffered storeage driver for microsd cards
...
this does all IO in the timer thread, avoids writes that don't change
data, and does all writes in multiples of 128 byte chunks. This should
be about as friendly to SD cards as we can get.
12 years ago
Andrew Tridgell
2a10727902
HAL_PX4: run timer thread as SCHED_FIFO
...
this ensures it never yields to the main thread, which would break our
locking assumptions
12 years ago
Andrew Tridgell
6ffa18fa61
HAL_PX4: rewrite UART driver to be much more efficient
...
this does the IO in the timer thread, and uses buffers in the main
task to avoid system call costs in the flight code.
The cost of PX4 read and write system calls is quite high - about 10
to 15 usec. We can't afford to pay that per byte
12 years ago
Andrew Tridgell
39e28d48c2
HAL_PX4: switched scheduler to use a pthread
...
this allows the timer tasks to access file descriptors in the main APM
task, which makes writing PX4 device drivers much easier
12 years ago
Andrew Tridgell
7c7a215934
HAL_PX4: fixes for new Scheduler API
12 years ago
Andrew Tridgell
5829d44a22
HAL_PX4: disable failsafe handler
...
this won't work until we can set RC output values in timers
12 years ago
Andrew Tridgell
9f423a24ad
HAL_PX4: yield CPU in delay()
...
this allows other apps to run
12 years ago
Andrew Tridgell
1e69b88261
HAL_PX4: use write() in panic()
...
this allows panic from the UARTDriver
12 years ago
Andrew Tridgell
b30fa6535b
HAL_PX4: support reboot
12 years ago
Andrew Tridgell
c6305b5876
HAL_PX4: rework Scheduler using hrt calls
...
thanks to Julian Oes for the suggestion
12 years ago