Commit Graph

451 Commits

Author SHA1 Message Date
Lorenz Meier 1c27b9fa41 Topic listener: Re-enable in build 2015-09-20 12:56:03 +02:00
Lorenz Meier af11a22472 Temporarily disable topic listener until it can deal with arrays 2015-09-20 11:01:41 +02:00
James Goppert 676a3d230c Work on px4io firmware building. 2015-09-13 23:20:00 -04:00
Lorenz Meier 4fb6e135d6 param: report open failure 2015-09-12 16:57:50 +02:00
James Goppert bf18c84652 Cleanup of module building. 2015-09-09 23:00:58 -04:00
Mark Charlebois 5a59d7d74f cmake: added support for topic_listener.cpp
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-09 10:15:37 -07:00
Mark Charlebois 7e1c984234 Hack to get posix build partially working
Created a dummy build_git_version.h so I did not have to figure out
how to generate it.

Commented out topic_listener.cpp from src/systemcmds/CMakeLists.txt
because it depends on a generated cpp file.

Link doesn't work mut many modules build

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-08 15:39:13 -07:00
James Goppert 1d6b31d196 Switch to cmake build system. 2015-09-07 20:37:45 -04:00
Daniel Agar 9fcbc1fb6f format src/systemcmds/ver 2015-09-05 12:21:13 -04:00
Daniel Agar 2fdbdd15ec format src/systemcmds/tests 2015-09-05 12:21:12 -04:00
Daniel Agar bed3fdf952 format src/systemcmds/reflect 2015-09-05 12:21:12 -04:00
Daniel Agar 01cc966b3b format src/systemcmds/reboot 2015-09-05 12:21:11 -04:00
Daniel Agar 354bde9627 format src/systemcmds/pwm 2015-09-05 12:21:11 -04:00
Daniel Agar 11027836c6 format src/systemcmds/param 2015-09-05 12:21:11 -04:00
Daniel Agar 88d58ae051 format src/systemcmds/nshterm 2015-09-05 12:21:11 -04:00
Daniel Agar edf010c6a9 format src/systemcmds/mtd 2015-09-05 12:21:11 -04:00
Daniel Agar 7527026b89 format src/systemcmds/motor_test 2015-09-05 12:21:11 -04:00
Daniel Agar 1cca86e8b5 format src/systemcmds/mixer 2015-09-05 12:21:11 -04:00
Daniel Agar 329ff0e036 format src/systemcmds/i2c 2015-09-05 12:21:11 -04:00
Daniel Agar 2c95a905c4 format src/systemcmds/esc_calib 2015-09-05 12:21:10 -04:00
Daniel Agar 5c2b1d7813 format src/systemcmds/config 2015-09-05 12:21:10 -04:00
Daniel Agar 8b2ce6708a format src/systemcmds/bl_update 2015-09-05 12:21:10 -04:00
Mark Charlebois 3a47434749 Fixes for qurt HIL build
Workaround required Eigen downgrade to 3.2. Hexagon toolchain does
not support C++11 features of newest version of Eigen.

Running make qurt_fixup will downgrade and patch Eigen for qurt.
Running make restore will revert the patch and do a git submodule update
to restore the expected Eigen version.

Added a "restore" target to undo qurt_fixup

Before doing a qurt build run:

    make qurt_fixup

That will downgrade Eigen to 3.2 and apply the require patch.
To build another target after downgrading:

    make restore

Them make the desired target (other than qurt).

Fixed type used in orb_priority to be consistent with the code
(int* was used in declaration but int32_t* used in code)

Removed unused class member variable in sensors.cpp

Added cmake fix for unit tests. The location of px4_log.c changed.

Fixed the qurt drv_hrt.c implementation to use us instead of ms for time resolution

Added px4_led.c to nuttx platform layer
Use the posix version of px4_led.c for nuttx so we don't end up with
duplicate files. It was moved out of common because it is not used by qurt.

Changed PX4_DEBUG to PX4_WARN when checking for the error condition for store_poll_waiter in vdev.cpp

Updated the px4_log.h file to make calls to the qurt_log functions.
The qurt_log function is defined in the platforms/qurt layer.

Added an option to control starting the commander module in HIL mode.

Moved the flight specific drivers to the configuration file instead of adding them
to the common tool chain file because HIL mode does not need them.

Added the uorb Subscriber and Publisher classes

Call PX4_ISFINITE macro instead of isfinite().

Added px4_led.c to nuttx platform layer
Use the posix version of px4_led.c for nuttx so we don't end up with duplicate files.
It was moved out of common because it is not used by qurt.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-25 21:59:01 -07:00
Lorenz Meier c41f32c17c Merge beta 2015-08-22 20:49:54 +02:00
Lorenz Meier b70c9a84c6 systemlib: Add ability to dump memory usage 2015-08-22 15:26:28 +02:00
Lorenz Meier 7cb97f1d39 top: Fix code style 2015-08-22 14:25:39 +02:00
TSC21 2afa499c66 test_eigen: correct some issues regarding type casts on POSIX build 2015-08-17 00:57:57 +02:00
TSC21 c5dfff1e6f test_eigen: reformulate and enhance eigen math tests on firmware 2015-08-17 00:57:57 +02:00
Lorenz Meier 90ecc942ce WIP: Debugging of the Eigen quaternion tests. A bunch of the issues were incomplete porting, but the assertion is real. 2015-08-17 00:57:57 +02:00
Lorenz Meier 1d3a5ec350 System cmds: Include cmath before eigen to make std::isfinite available. This needs further inspection 2015-08-14 18:37:00 +01:00
Lorenz Meier c5ec4de6ea Increase NSH back-off time 2015-08-13 23:27:55 +02:00
Lorenz Meier 1ef7d13487 Increase NSH back-off time 2015-08-13 23:26:35 +02:00
Lorenz Meier 8dc3c0025a param command: Support greater comparison 2015-08-08 14:13:45 +02:00
Lorenz Meier aa61d3b2d6 Merged beta into master 2015-08-08 11:33:42 +02:00
Lorenz Meier e09771be17 NSH terminal: Increase hold-off time to ensure USB is up and running 2015-08-08 11:31:58 +02:00
Lorenz Meier 2a8402edb1 Merged beta into master 2015-07-09 15:55:31 +02:00
Lorenz Meier eecddbcab9 Tests: Reset mixer inputs 2015-07-06 12:08:31 +02:00
Lorenz Meier c9fe205db1 Mixer test: Add routine to test pre-arming 2015-07-06 12:08:31 +02:00
Mark Charlebois 2ea82548a4 Change fabsf() to abs for int arg
Clang complains that fabsf() is being used for an int arg. Use abs() instead.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-07-02 01:06:26 -07:00
Lorenz Meier 86d70a1e9e Merge pull request #2512 from mcharleb/tests-posix-clang-fix-2
POSIX: do not error on stack size warning
2015-07-02 09:14:25 +02:00
Mark Charlebois f659a3e8cc POSIX: do not error on stack size warning
posix build fails on x86_64 with this check enabled.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-07-01 16:55:20 -07:00
Lorenz Meier 02850e0d16 Merge pull request #2510 from mcharleb/fabsf-fix
Chage use of fabsf for int to abs
2015-07-02 01:34:48 +02:00
Mark Charlebois 043bf9a4d7 Chage use of fabsf for int to abs
Use of fabsf() for int arg failed for clang. Changed to use abs().

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-07-01 16:13:49 -07:00
Lorenz Meier 234990fbe4 Merge branch 'release_v1.0.0' of github.com:PX4/Firmware 2015-07-02 01:00:06 +02:00
Lorenz Meier f411b7ed21 Merge branch 'getopt-cleanup-v2' 2015-07-02 00:26:57 +02:00
Mark Charlebois 28dd9759a6 POSIX: fixes for use of open vs px4_open, etc
Fixes for the posix build when virtual devices are used.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-07-01 23:51:12 +02:00
Mark Charlebois e1de3c13c6 POSIX: added required header file for PRId64
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-07-01 08:04:51 -07:00
Mark Charlebois 63f7995b41 NuttX: fixes for printing size_t and int64_t
Added definition of PRId64 for C99 compatibility.
Used %zd for portable wat to print size_t.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-07-01 07:51:24 -07:00
Mark Charlebois 1e46f44123 POSIX: ported systemcmds/tests
Most of the systemcmds tests run in the posix build. The UART tests
fail for me as I do not have a UART connected.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-07-01 07:51:24 -07:00
Lorenz Meier ece87a3fa2 Mixer test: Fixed compile warnings 2015-06-30 09:51:04 +02:00