Commit Graph

442 Commits

Author SHA1 Message Date
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
Lorenz Meier c28a69fba8 Mixer test: Ensure its not susceptible to timing jitter of the test harness 2015-06-30 09:51:04 +02:00
Lorenz Meier 454becdae5 Merged release_v1.0.0 branch into master 2015-06-25 21:45:17 +02:00
Lorenz Meier 475c28803e param command: Fix error handling if param is not found 2015-06-25 09:28:22 +02:00
Lorenz Meier 26c47f25cb PWM outputs: Allow the new p:PWM_OUT etc params for setting PWM limits via params at boot-time. 2015-06-23 12:30:47 +02:00
Lorenz Meier 4c975a11e5 param command: Complete help text 2015-06-23 09:33:07 +02:00
Mark Charlebois f7fe6a037d Converted getopt use to px4_getopt
In the posix and qurt builds, getopt is not thread safe so px4_getopt
should be used instead.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-19 11:39:08 -07:00
Mark Charlebois 872a26e6da Fixed passed ot open() for O_CREAT
In nuttx the mode parameter to open is not required but in Linux,
and per the POSIX spec, mode is required if the O_CREAT flag is
passed.

The mode flags are different for NuttX and Linux so a new set of
PX4 defines was added:

PX4_O_MODE_777 - read, write, execute for user, group and other
PX4_O_MODE_666 - read, and write for user, group and other
PX4_O_MODE_600 - read, and write for user

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-14 11:26:40 +02:00
David Sidrane 428611119f Merged GIT version changes 2015-06-12 19:32:55 +02:00
David Sidrane 5acc4ee43b Back Port of Git Versioning - without side effects Part 2 2015-06-12 06:54:04 -10:00