David Sidrane
db44129ec0
Prevents the posibility of buffer overflow in mixer parsing.
...
The fix limits scanf from overwritting the geomname buffer local
variable. Thus preventing stack corruption as noted by chungkim.
2016-10-12 22:58:55 +02:00
Lorenz Meier
569cceb059
Fix task load measurement in NuttX. Reported by @chungkim. Fixes #5645 .
2016-10-12 08:43:45 +02:00
Gregory
ddea179e95
Adding support for 19200 and 38400 baud TELEM2
2016-10-10 22:24:17 +02:00
Roman
cf8f484868
mixer class: updated comments on slew rate limit method
...
Signed-off-by: Roman <bapstroman@gmail.com>
2016-09-30 13:55:53 +02:00
Roman
c2a511d81d
multirotor mixer slew rate limiting: naming and fixes
...
- avoid dividing by zero when calculating max delta output
- better comments when calculating max delta output
- better naming of functions and variables
Signed-off-by: Roman <bapstroman@gmail.com>
2016-09-30 13:55:53 +02:00
Roman
cced6fc8b2
multirotor mixer: use correct version of delete operator for array pointer
...
Signed-off-by: Roman <bapstroman@gmail.com>
2016-09-30 13:55:53 +02:00
Roman
2607769470
slew rate limiting: moved logic to multirotor mixer
...
Signed-off-by: Roman <bapstroman@gmail.com>
2016-09-30 13:55:53 +02:00
Roman
66ddea01d1
implemented slew-rate
2016-09-30 13:55:53 +02:00
Beat Küng
489f63a3d3
rc_check: replace mavlink_and_console_log_critical with mavlink_log_critical
...
these functions got merged.
2016-09-30 13:50:51 +02:00
Beat Küng
ce0d31b7d9
mavlink log: ensure all critical & emergency msgs are also logged to console & ulog
...
Critical messages that the user sees should also go to the log file, so
that the exact error (with time) can later be analyzed from the log file.
2016-09-30 13:50:51 +02:00
Julian Oes
8ff237c69f
Remove size optimization for individual modules
...
It makes more sense to set the optimization flags on a platform basis
instead of individually for each module. This allows for different
optimization options for SITL, NuttX, Snapdragon, etc.
2016-09-30 08:11:51 +02:00
Sander Smeets
c4eabbd083
VTOL transition switch parameter checking ( #5545 )
...
* VTOL transition switch parameter checking
* Code style
2016-09-26 10:18:23 +02:00
Beat Küng
e2afb0be6b
px4_log.h: remove hrt_absolute_time() declaration (it does not belong here)
2016-08-24 21:24:35 +02:00
Beat Küng
1fffd731b1
print_load_posix under DARWIN: remove unused variable basic_info ( #5364 )
2016-08-23 09:09:55 +02:00
James Goppert
818840b576
Path cleanup, low impact changes ( #5340 )
...
* Low impact changes from path_cleanup branch.
This is a step towards minimizing the diff with path_cleanup branch.
* Update ecl.
* Revert matrix update.
* Revert ecl and matrix.
* Update sitl gazebo.
* Revert sitl_gazebo and matrix changes.
2016-08-18 15:37:23 -04:00
Lorenz Meier
ae00abe468
Fix typo
2016-08-18 15:44:51 +02:00
Tiktiki
dfed00d870
Update multi_tables.py
...
Corrected HEX_T position and rotation for motors 1-2-5-6
2016-08-18 15:27:32 +02:00
Tiktiki
021da9b2e1
Update mixer_multirotor.cpp
2016-08-18 15:25:24 +02:00
Tiktiki
3daf4a3a67
Update multi_tables.py
2016-08-18 15:25:24 +02:00
Lorenz Meier
102f5b54d7
Revert "Improvements to SITL to make paths more flexible. ( #5181 )"
...
This reverts commit 699b6a2cb340f4b6ec3979ae7748ff9c56cfdb89.
2016-08-05 21:29:49 +02:00
James Goppert
699b6a2cb3
Improvements to SITL to make paths more flexible. ( #5181 )
2016-08-05 06:23:59 -04:00
Lorenz Meier
074a71173b
Systemlib: Address init and copy constructors
2016-08-05 10:13:24 +02:00
James Goppert
437221bec2
Make LPE default estimator. ( #4483 )
2016-08-02 02:02:01 -07:00
Julian Oes
623b99327d
param: lock the bus as short as possible ( #5187 )
...
Since the FRAM and the baro are on the same bus on the Pixracer, we
currently need to lock down everything (instead of just this SPI bus)
for the time when the params are written.
Therefore, we need to keep this locking as short as possible.
This change makes the locking even shorter by moving all param_get and
param_name and param_size calls out of the lock.
2016-08-01 02:15:21 -07:00
Julian Oes
3d0fa410a8
hysteresis: astyle
2016-07-30 12:26:56 +02:00
Julian Oes
f7ad8c03b4
hysteresis: use 64bit for everything in us
2016-07-30 12:26:56 +02:00
Julian Oes
ee1669e174
hysteresis: add to systemlib CMakeLists.txt
2016-07-30 12:26:56 +02:00
Julian Oes
f365832c0b
hysteresis: we needed different hysteresis
...
Sometimes, we only need a histeresis in one direction.
2016-07-30 12:26:56 +02:00
Julian Oes
401d807261
systemlib: added library for hysteresis
...
There have been two cases where a hysteresis function wasn't working
correctly. It is therefore a good idea to abstract the hysteresis
functionality into a library.
2016-07-30 12:26:56 +02:00
David Sidrane
8a2df2a458
Avoid unnecessary Write Cycle
2016-07-13 20:42:05 +02:00
David Sidrane
5e8d6375c9
Back Port nuttx_v3 FLASH based parameter hooks
2016-07-13 20:42:05 +02:00
Julian Oes
8ded6a58ab
mavlink_log: enable queueing
...
We don't want to drop messages if possible for mavlink log messages, so
let's use the orb queueing.
2016-07-13 10:10:45 +02:00
Beat Küng
4ec9e53deb
param SYS_LOGGER: remove experimental for new logger
...
It's ready to be used!
2016-07-11 10:03:02 +02:00
Lucas De Marchi
18330f7ab7
Move __STDC_FORMAT_MACROS to build system
...
__STDC_FORMAT_MACROS changes the behavior of inttypes.h to allow
defining format macros for printf-like functions. It needs to be defined
before any include is done, otherwise due to include chains and header
guards it may not take effect.
Instead of having to define it everywhere it is used, move the define to the
build system. Also update ecl and DriverFramework submodules to deal with the
changed definitions.
2016-07-10 16:31:36 +02:00
Lorenz Meier
972a6f7be8
Fix MAVLink reporting of Firmware version, implement dev / release version reporting
2016-07-02 11:43:24 +02:00
Beat Küng
8a12dee125
cmake: remove all module.mk files & cmake conversion script ( #4918 )
...
It seems these files are leftovers.
2016-06-28 09:26:36 +02:00
Daniel Agar
b8b855f2aa
param.c fix style
2016-06-26 17:36:45 -04:00
Lorenz Meier
3c2bd4f6dd
Param interface: Only mark as changed if value changed
2016-06-26 22:29:14 +02:00
jwilson
a73ac821ab
Fixes shared memory locking bug and eliminates the need for an AppsProm driver to reserve a shared memory region.
2016-06-22 08:57:06 +02:00
Julian Oes
ea10c8c8a3
circuit_breaker: change default for GPS failure
...
We should definitely take action when GPS fails, this circuit breaker
shouldn't be engaged anymore.
2016-06-21 10:21:34 +02:00
David Sidrane
538d9ada25
Needed to avoid name collsion in upcomming Nuttx logger changes ( #4830 )
2016-06-15 21:51:53 +02:00
Beat Küng
fcab80bfee
getprogname: rename to px4_get_taskname
2016-06-09 15:22:29 +02:00
Beat Küng
9f5adb2356
getprogname: re-enable on NuttX & move to px4_tasks.h
2016-06-09 15:22:29 +02:00
Julian Oes
3b5feafef4
err: add missing include for exit
2016-06-07 22:10:56 +02:00
Julian Oes
04083cff3d
err: we need to use exit on NuttX
...
px4_task_exit doesn't seem to be available for NuttX, so it had no
effect and broke the init because the return values of the tasks were
wrong.
2016-06-07 22:10:56 +02:00
Julian Oes
c916ee7357
err: astyle prefers it different
2016-06-07 22:10:56 +02:00
Julian Oes
f68a6eb42c
err/px4_log: switch everything to static function
...
Instead of having separate log functions for NuttX and POSIX, this now
switches everything to px4_log.h and PX4_INFO/WARN/ERR/DEBUG.
Also, the call mostly used is now a static inline function instead of a
macro which lead to a big increase in flash size for STM32.
2016-06-07 22:10:56 +02:00
Julian Oes
11cc17b63a
param_shmem: be less verbose
2016-06-07 22:10:56 +02:00
Julian Oes
93ada40bf9
param_shmem: removed a printf
2016-06-07 22:10:56 +02:00
Beat Küng
078e79f294
mavlink_log.c: fix coding style
2016-06-02 07:32:49 +02:00