Commit Graph

12312 Commits

Author SHA1 Message Date
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 e5fad077df Merge master into linux 2015-05-18 23:28:57 +02:00
Lorenz Meier c06ba047e2 param lib: Fix index used routine 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
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
Lorenz Meier 4345204064 Merge pull request #2114 from UAVenture/startup_script
Make sure we have a boolog.txt entry for critical failures.
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
Lorenz Meier fa12a61765 sdlog2: Fix command handling / interpretation of command parameters 2015-05-17 23:23:26 +02:00
Lorenz Meier 2f5e27c180 param lib: Fix code style 2015-05-17 23:08:10 +02:00
Lorenz Meier ff4be81976 Param: do not set a param as used just because its value is non-default. 2015-05-17 23:05:32 +02:00
Lorenz Meier e279e8bb2a Fix param changed count logic, speed up logic for unused params 2015-05-17 22:58:52 +02:00
Lorenz Meier 83fdb9931a commander / mavlink: Add battery status to output BATTERY_STATUS MAVLink message 2015-05-17 17:44:51 +02:00
Lorenz Meier bbd55a01ce Merge pull request #2190 from s3erjaeh/master
FIX GPS coordinates conversion in HIL mode
2015-05-17 16:19:21 +02:00
Erik Jähne fcb1bb2bb6 FIX HIL GPS conversion 2015-05-17 14:50:17 +02:00
Lorenz Meier 3032afb803 mavlink FTP: Fix build system error for unit test 2015-05-17 10:48:37 +02:00
Mark Charlebois 36f5d47ed9 Merge remote-tracking branch 'upstream/master' into linux
Signed-off-by: Mark Charlebois <charlebm@gmail.com>

Conflicts:
	src/modules/commander/gyro_calibration.cpp
	src/modules/mavlink/mavlink_ftp.cpp
2015-05-16 15:04:38 -07:00
Lorenz Meier 26954ece2c Merge pull request #2187 from PX4/fixconstrainairspeed
make constrain airspeed actually constrain the airspeed
2015-05-16 23:20:06 +02:00
Thomas Gubler 8a891591a8 make constrain airspeed actually constrain the airspeed 2015-05-16 19:05:31 +02:00
Lorenz Meier 03ef6a30ec Speed up param transmit now that we are faster on USB 2015-05-16 11:43:45 +02:00
Lorenz Meier 2432418751 FTP: Better error reporting, ignore hidden directories 2015-05-16 11:37:41 +02:00
Mark Charlebois 6a1c28fbc1 Merge branch 'linux' of http://github.com/mcharleb/Firmware into linux 2015-05-15 13:00:59 -07:00
Mark Charlebois 9f391b1867 NuttX: fixes for NuttX build
In the upstream tree ringbuffer.h includes the method implementations
in the header file which causes multiple definitions in the link for
other targets. Changed so ringbuffer.cpp is build separately for other
platforms and is included by ringbuffer.h on NuttX.

uORB changes do not link without uORBTest_UnitTest.cpp enabled for
the NuttX build.

px4_getopt was not exported and wasn't visible in NuttX build.

The makefiles were restored to be as close as possible to upstream
so the NuttX build builtin's work again. The code will have to be
refactored after the merge.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-15 12:56:18 -07:00
Lorenz Meier 97b8e7a20e mavlink FTP: Speed up transfers by longer bursts 2015-05-15 21:14:40 +02:00
mcharleb 868177f3ba Merge pull request #12 from tumbili/simulator_fixes
fix mavlink message sending, make thread priority default
2015-05-15 08:59:14 -07:00
Roman Bapst 4a84215a8f fix mavlink message sending, make thread priority default 2015-05-15 17:49:20 +02:00
David Sidrane c6bc3153ef Reviewd - fixed indexing that was wrong, code clean up ran astyle 2015-05-15 03:58:04 -10:00
Lorenz Meier 5c53d38652 FMUv2 config: Increase USB TX buf size further to speed up MAVLink FTP transfers 2015-05-15 11:38:06 +02:00
Lorenz Meier 8f8184560b sdlog2: Log at 100 Hz as default 2015-05-15 11:17:08 +02:00
Lorenz Meier dabcf63c50 mavlink FTP: Drop rate to realistic value 2015-05-15 11:16:48 +02:00
Lorenz Meier 9bd2e376f6 NuttX for FMUv2: Larger USB buffer 2015-05-15 11:16:34 +02:00
Lorenz Meier f154f6e5e7 MAVLink transmission: Allow faster overall transmissions. 2015-05-15 11:16:11 +02:00
Lorenz Meier 4fb91f47cd Fix mavlink FTP list stack overflow. Fixes #2180, not flight-critical 2015-05-15 11:15:04 +02:00
Lorenz Meier fe4d2ddc40 Merge pull request #2177 from UAVenture/mp_param_update_launch
Fix parameters in SITL launch files
2015-05-15 09:36:23 +02:00
Andreas Antener 2bcfd4f6f7 rename parameters in launch file to match new MP parameters 2015-05-15 09:26:07 +02:00
Lorenz Meier 535eb7dbd9 param lib: Fix use of array size 2015-05-15 09:11:28 +02:00
Lorenz Meier fa8dc57236 mavlink app: Only send params if the system has booted. 2015-05-15 08:31:45 +02:00
David Sidrane a0af91d05c Missing Brace 2015-05-14 18:15:10 -10:00
David Sidrane 6667e6e078 Update param.c
Not used px4_macros.h anyway
2015-05-14 18:03:23 -10:00
David Sidrane 8e9fdc6147 Use stdlib's calloc for compaiblity 2015-05-14 17:03:10 -10:00
David Sidrane dc4d5619ea Reduced the amount of memory used by params to only that that is needed
Conflicts:
	src/modules/systemlib/param/param.c
2015-05-14 17:02:45 -10:00