Commit Graph

525 Commits

Author SHA1 Message Date
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
David Sidrane 17fddb1556 Back Port of Git Versioning - without side effects Part 1 2015-06-12 06:49:15 -10:00
Mark Charlebois cb231e89f6 QuRT: Changes to enable qurt target to build
QuRT doesn't support unlink and does not provide getpid().
The DSPAL layer provides access to usleep so an implementation is
no longer needed.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-08 22:22:00 -07:00
tumbili 909508f8f9 let mixer sleep a bit before loading to ensure device is set up 2015-06-08 22:21:58 -07:00
tumbili f4a25097c1 use open/close instead of px4_open/px4_close for parameter file 2015-06-01 23:01:48 +02:00
Lorenz Meier 4565f57468 Merged release_v1.0.0 into master 2015-05-27 15:28:41 -07:00
Mark Charlebois 1ca05aaa64 orb_advert_t changed to void * and checks changed to nullptr
The existing orb_advert_t use thoughout the code sometimes tries
to treat it as a file descriptor and there are checks for < 0
and ::close calls on orb_advert_t types which is an invalid use
of an object pointer, which is what orb_advert_t really is.

Initially I had changed the -1 initializations to 0 but it was
suggested that this should be nullptr. That was a good recommendation
but the definition of orb_advert_t had to change to void * because
you cannot initialize a uintptr_t as nullptr.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-27 14:42:49 -07:00
Mark Charlebois a734fc96d1 extensive orb_advert_t fixes
The calls to orb_advertise were being mishandled throughout the code.
There were ::close() calls on memory pointers, there were checks
against < 0 when it is a pointer to a object and values larger than
0x7ffffffff are valid. Some places orb_advert_t variables were
being initialized as 0 other places as -1.

The orb_advert_t type was changed to uintptr_t so the pointer value
would not be wrapped as a negative number. This was causing a failure
on ARM.

Tests for < 0 were changed to == 0 since a null pointer is the valid
representation for error, or uninitialized.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-27 14:41:33 -07:00
Lorenz Meier 30cd3e1d79 Mixer test: Support channel reversal 2015-05-25 16:42:46 +02:00
Ban Siesta 7bdb3cc228 systemcmds: the mixer shuts up now 2015-05-25 17:01:07 +01:00
Lorenz Meier 8fd00f4d6d Merged release_v1.0.0 into master 2015-05-23 11:07:10 +02:00
Lorenz Meier 6d7e063148 Added GIT version which recompiles on each build 2015-05-23 09:59:46 +02:00
Daniel Agar 3bc10d037d test_eigen minor fixes
-disable quaternion tests for now
2015-05-21 00:20:49 -04:00
Lorenz Meier 22cd71d5c3 Eigen3: Enable test 2015-05-20 23:40:41 -04: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
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 6db77dc8bb Experimental virtual file support
QuRT does not have a filesystem, so creating a virtual filesystem
that could be implemented as an in-memory file or a remote file
over fastRPC.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-06 22:12:45 -07:00