Mark Charlebois
eaef0db7d6
Logging fixes and enhancements
...
Made the logging macros generic so they can be used for multiple targets.
Fixed toolchain_native.mk so err.h is included from src/systemlib for posix.
Reduced debug output for uORB.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-05-19 11:53:19 -07:00
Mark Charlebois
95de7c2e94
ROS: Fixes for print of uint64_t type
...
Changed printf to use PRIu64
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-05-19 11:14:40 -07:00
Mark Charlebois
60080dd9e7
QuRT: fixed print of INT32_t type
...
In QuRT, this is a long but the variable was being printed with "%d"
Need to cast variable as long and use "%ld"
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-05-19 11:10:06 -07:00
Mark Charlebois
ce96329f95
Resolve printing uint64 types
...
Using %llu or %lu will break one of the build targets. The "right way"
to print a uint64_t is via the PRIU64 macro defined in C99.
This wasn't defined for the NuttX compiler so it was added to px4_defines.h
for NuttX.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-05-19 11:04:39 -07:00
Mark Charlebois
e2d175b3e5
Added back include of px4_posix.h for non-ROS builds
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-05-19 10:47:17 -07:00
Mark Charlebois
0f5cb75692
ROS: Fixes for ROS build
...
The ROS build included some files that used isfinite vs PX4_ISFINITE.
The AppState class also needed to be supported for ROS.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-05-19 10:41:15 -07:00
Mark Charlebois
49a200d834
Merge branch 'linux' of http://github.com/mcharleb/Firmware into linux
2015-05-19 09:23:34 -07:00
Mark Charlebois
ffdc9d629c
POSIX: Improved logging
...
The warnx and warn calls map to PX4_WARN.
Calls to errx or err genrtate a compile error.
The px4_log.h file implements a new log format:
For DEBUG and INFO:
<level> <msg>
For ERROR and WARN:
<level> <msg> (file filepath line linenum)
The verbosity can be changed by setting the macro to use
either linux_log or linux_log_verbose in px4_log.h
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-05-19 09:19:24 -07:00
Lorenz Meier
11564a0f14
Mission yaw mode: Default to facing the next waypoint
2015-05-19 17:03:28 +02:00
Lorenz Meier
607c452e71
Merge pull request #2197 from PX4/self_leveling
...
Self leveling
2015-05-19 14:52:44 +02:00
Roman Bapst
12c6dc8ad8
added routine for autopilot level calibration
2015-05-19 14:20:00 +02:00
Roman Bapst
5c63a2d2f4
fixed sensor board rotation offset
2015-05-19 14:19:03 +02:00
Pavel Kirienko
1047a25872
FirmwareUpdateTrigger - fixes and test
2015-05-19 13:22:52 +03:00
Pavel Kirienko
0d60595d7c
FirmwareUpdateTrigger - fixes and test
2015-05-19 13:16:51 +03:00
Max Shvetsov
dbe58d6165
[pwm_input] reset feature added
...
publication to range_finder topic added
2015-05-19 12:40:42 +03:00
Lorenz Meier
2625d3e973
Merge pull request #2175 from Zefz/preflight_gps_check
...
Preflight: GPS check
2015-05-19 10:10:46 +02:00
Lorenz Meier
5fb99e9300
MC att control: Better param docs
2015-05-19 07:18:41 +02:00
Lorenz Meier
66e6dccfee
FW att control: Better param docs
2015-05-19 07:18:25 +02:00
Lorenz Meier
d9d25363b4
mavlink FTP: Remove workaround after QGC side fix
2015-05-19 07:08:19 +02:00
Lorenz Meier
3a0fda2d29
Merge pull request #2195 from rmackay9/orig-fast-gyro-interupt
...
l3gd20: faster gyro interrupts
2015-05-19 06:45:03 +02:00
Randy Mackay
a90caf7b7b
l3gd20: faster gyro interrupts
2015-05-19 13:25:42 +09:00
Pavel Kirienko
d7ae3f90c0
Doc fix
2015-05-19 02:13:50 +03:00
Pavel Kirienko
694d29ab47
Misleading comment that somehow survived refactoring
2015-05-19 02:10:22 +03:00
Pavel Kirienko
6b179d032b
Firmware update trigger implementation. It is most likely broken, because I'm half asleep by now; proper tests will be added later
2015-05-19 01:37:10 +03:00
Lorenz Meier
e5fad077df
Merge master into linux
2015-05-18 23:28:57 +02:00
Lorenz Meier
3facabb85c
Merge branch 'master' into beta
2015-05-18 23:19:08 +02:00
Lorenz Meier
c06ba047e2
param lib: Fix index used routine
v1.0.0rc10
2015-05-18 23:15:20 +02:00
Mark Charlebois
791d780bb8
BAROSIM: Fixed error in transfer function
...
The transfer function would previously return error if the receive
buffer length was 0. This appears to be a valid condition for
requesting a measurmement be taken but no data returned.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-05-18 13:29:20 -07:00
Pavel Kirienko
f9b946addd
Merge pull request #29 from cvra/master
...
Add missing include
2015-05-18 23:15:49 +03:00
Antoine Albertelli
76305b3c69
Add missing include
2015-05-18 22:12:54 +02:00
Pavel Kirienko
5e458e918d
MakeString<> helper template
2015-05-18 22:29:09 +03:00
Mark Charlebois
466db74d29
QuRT: Added define so pthread functions are enabled
...
Added -D__QDSP6_DINKUM_PTHREAD_TYPES__ to makefiles/toolchain_hexagon.mk
so the pthreads functions are properly defined.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-05-18 12:21:53 -07:00
Mark Charlebois
dcb55ff38d
Changed isfinite to PX4_ISFINITE
...
There are cross platform issues with the isfinite call that are handled
by PX4_ISFINITE
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-05-18 09:58:49 -07:00
David Sidrane
65c5d6efa8
Merge pull request #27 from UAVCAN/posix_tools_refactor
...
Posix tools refactor
2015-05-18 06:32:58 -10:00
Pavel Kirienko
875c74d88e
Removed useless constructors
2015-05-18 17:11:05 +03:00
Pavel Kirienko
3c073ac9d4
Simple test for POSIX storage backend
2015-05-18 17:08:49 +03:00
Pavel Kirienko
09a96061ad
Fixed and improved file event tracer + POSIX test
2015-05-18 17:02:17 +03:00
Pavel Kirienko
46afa99b27
Refactored POSIX tools
2015-05-18 15:14:37 +03:00
Pavel Kirienko
e4886606f0
Typo
2015-05-18 14:31:10 +03:00
Pavel Kirienko
51a2ce39c5
Full file server implementation
2015-05-18 14:21:58 +03:00
Pavel Kirienko
58ca7319dd
File server implementation with test
2015-05-18 14:05:10 +03:00
Johan Jansen
cd67609da5
PreflightCheck: Reduce GPS timeout to 2 sec
2015-05-18 12:49:53 +02:00
Johan Jansen
680898e6aa
GPS: Publish first data after configuring device
2015-05-18 12:48:40 +02:00
Johan Jansen
38004cdd95
PreflightCheck: Increase GPS timeout to 4 sec
2015-05-18 12:31:16 +02:00
Lorenz Meier
82f770ddff
Merge branch 'master' of github.com:PX4/Firmware into beta
2015-05-18 11:03:49 +02:00
Lorenz Meier
4345204064
Merge pull request #2114 from UAVenture/startup_script
...
Make sure we have a boolog.txt entry for critical failures.
v1.0.0rc9
2015-05-18 10:48:38 +02:00
Lorenz Meier
de5b65ba2e
Merge pull request #2191 from PX4/sdlog2_gpstime
...
Give user a choice which time source to pick
2015-05-18 10:46:03 +02:00
Lorenz Meier
937289a3ef
Give user a choice which time source to pick
2015-05-18 10:32:41 +02:00
Lorenz Meier
635b7fa01d
param API: Ensure info count method is called
2015-05-18 00:17:09 +02:00
Lorenz Meier
2e1f5c4bf3
Merge pull request #2176 from PX4/master_param_mem_usage_redux
...
Master param mem usage redux
2015-05-17 23:27:26 +02:00