901 Commits

Author SHA1 Message Date
Daniel Agar
fecdfe5fbc move posix/tests/hrt_test to systemcmds/tests/hrt_test 2018-11-26 14:40:14 -08:00
Daniel Agar
3e0a3559a9 cmake use standard mechanisms for settings flags 2018-11-26 14:40:14 -08:00
Daniel Agar
ec4c9da253 remove BOARD_NAME from board_config.h and set automatically 2018-11-26 14:40:14 -08:00
Daniel Agar
abb3817d31 boards new split VENDOR_MODEL naming convention 2018-11-26 14:40:14 -08:00
Daniel Agar
f692ad04d0 boards organization 2018-11-26 14:40:14 -08:00
Mara Bos
d13836eb1e Add dynamic modules on Posix.
You can now add `DYNAMIC` as an option to `px4_add_module`, which will
cause that module to no longer be compiled into the px4 executable, but
instead produce a separate shared library file, which can be loaded and
executed with the new `dyn` command:

    pxh> dyn ./hello.px4mod start

This will load the shared object file `hello.px4mod` if it wasn't
already loaded, and execute its main function with the given arguments.
2018-11-24 01:58:09 +01:00
Mara Bos
e9fb17c51a Always use FILE* for standard output.
The threads running commands for clients through the Posix daemon used
to write to a char buffer through snprintf (etc.) which was then written
directly to the file descriptor, whereas in the other case printf
(etc.) was used to write to stdout (FILE*). Both versions used some
macro's and repeated code to have the same output.

This change unifies these two cases by using a FILE* in both cases. The
(line) buffering is done by the standard C library's implementation
(just like with stdout), and px4_log.c now uses the same code in all
cases (using fprintf, etc.) for printing (colored) output.
2018-11-23 12:15:41 +01:00
Roman Bapst
90bfdb6f0a VTOL rate control architecture improvements (#10819)
* attitude and rate setpoint message: use 3D array for thrust demand
* FixedWingAttitudeControl: rework airspeed scaling
  * move airspeed and scaling calculation into separate method
  * if vtol in hover and airspeed disabled use minimum airspeed instead of trim airspeed
2018-11-21 20:32:40 -05:00
Daniel Agar
8dfd55fc9e delete unused IOCTL SENSORIOCGPOLLRATE 2018-11-06 07:43:43 +08:00
Daniel Agar
d76155107c delete unused IOCTL MAGIOCGRANGE 2018-11-06 07:43:43 +08:00
Daniel Agar
0ea18b2b73 delete unused IOCTL MAGIOCGSAMPLERATE 2018-11-06 07:43:43 +08:00
Daniel Agar
60a40ec131 delete unused IOCTL MAGIOCSSAMPLERATE 2018-11-06 07:43:43 +08:00
Daniel Agar
571364c617 delete baro_report (alias for sensor_baro_s) 2018-11-06 07:43:43 +08:00
Daniel Agar
acc24da0c2 delete gyro_report (alias for sensor_gyro_s) 2018-11-06 07:43:43 +08:00
Daniel Agar
42f9aa6e43 delete drv_gyro.h GYROx_DEVICE_PATH 2018-11-06 07:43:43 +08:00
Daniel Agar
3daf37433e delete unused IOCTL GYROIOCSSAMPLERATE 2018-11-06 07:43:43 +08:00
Daniel Agar
60c14fe8f1 delete unused IOCTL GYROIOCGSAMPLERATE 2018-11-06 07:43:43 +08:00
Daniel Agar
ef65e5267a delete unused IOCTL GYROIOCGRANGE 2018-11-06 07:43:43 +08:00
Daniel Agar
068dcb37df delete unused IOCTL GYROIOCSRANGE 2018-11-06 07:43:43 +08:00
Daniel Agar
f21f1a1357 delete drv_accel.h ACCELx_DEVICE_PATH 2018-11-06 07:43:43 +08:00
Daniel Agar
2a83a40491 delete accel_report (alias for sensor_accel_s) 2018-11-06 07:43:43 +08:00
Daniel Agar
e759e0e1a5 delete unused IOCTLs ACCELIOCSSAMPLERATE and ACCEL_SAMPLERATE_DEFAULT 2018-11-06 07:43:43 +08:00
Daniel Agar
77abcab46f delete unused IOCTL ACCELIOCGRANGE 2018-11-06 07:43:43 +08:00
Daniel Agar
5d3d120705 delete unused IOCTL ACCELIOCSRANGE 2018-11-06 07:43:43 +08:00
Daniel Agar
8ad59160c9 delete unused IOCTL ACCELIOCGSAMPLERATE 2018-11-06 07:43:43 +08:00
Mara Bos
10c20b38ad Fix many format strings.
Fixes these invalid format strings:
- A `%d` for a pointer (replaced it by `%p`)
- A 0x%08x (and a 0x%0x8!) for a pointer (replaced by %p)
- 2 cases of `%d` for a `ssize_t` (replaced it by `%zi`)
- 1 case of a %u for an `int` (replaced by %i)
- 3 cases of %d for a `long` (replaced by %ld)
- 19 cases of `%d`, `%i`, `%u` or `%lu` for a `size_t` (replaced it by `%zu`)
- An unused formatting argument (removed it)
- A missing `%d` (added it)
- A missing `%s` (added it)
- 2 cases of `%llu` for a `uint64_t` (replaced it by `"%" PRIu64`)
- 6 cases of giving a string directly as format string (replaced it by `("%s", string)`)
- 2 cases of %*-s, which should probably have been %-*s.
  (Looks like NuttX accepts (the invalid) %*-s, but other platforms don't.)
- A %04x for a `uint32_t` (replaced by "%04" PRIx32)
2018-10-27 12:44:51 +02:00
Hamish Willee
55b9f76a16 Fix jenkins build error in tune_control 2018-10-10 19:23:09 -04:00
Hamish Willee
988ce71ee0 Better rendering for tune control 2018-10-10 10:30:11 +02:00
Hamish Willee
a98643cb16 Add tune control docs as options 2018-10-10 10:30:11 +02:00
Hamish Willee
629933d0c8 Fix up tune control docs 2018-10-10 10:30:11 +02:00
Beat Küng
f0f88a3662 ver command: show the git branch name for 'ver all' 2018-10-03 10:30:10 +02:00
David Sidrane
66102adf43 ver:Removed UUID and MFGID 2018-10-03 10:30:10 +02:00
David Sidrane
ea1722274d ver:Use Board identity API without ifdefs for overrides 2018-10-03 10:30:10 +02:00
David Sidrane
39a0021251 ver:Add PX4 GUID (MFGUID and UID will be deprecated later) 2018-10-03 10:30:10 +02:00
Beat Küng
4d05a74aeb pwm.cpp: use px4_get_parameter_value 2018-09-25 07:53:29 +02:00
Beat Küng
15044909a4 param: add 'param touch <param_name>' command
so that params can be marked as used from scripts.
2018-09-25 07:53:29 +02:00
Beat Küng
62550be858 topic_listener: reduce flash space by avoiding template bloat
Use a templated callback method for the code parts that we actually need
templates, and avoid using a template for the rest of the code.

Saves around 20KB of flash.
2018-09-24 13:25:23 +02:00
MaEtUgR
4f0e090e88 drv_rc_input: replace useless rc_input_values define 2018-09-21 16:26:27 +02:00
bresch
740e409016 PWM - Add PWM_MIN and PWM_MAX parameters for MAIN and AUX (#10452) 2018-09-16 18:07:29 -04:00
David Sidrane
82576c8d4c mtd:Add margin to stack from RTT-Stack check 2018-09-14 15:37:20 -04:00
David Sidrane
3022fdb240 test_file2:test fails due to missing slash 2018-09-13 12:15:03 -07:00
David Sidrane
945a532260 pwm:Use test mode in steps command 2018-09-13 08:45:36 +02:00
David Sidrane
49f1540c30 pwm:Add test mode 2018-09-13 08:45:36 +02:00
Daniel Agar
40a68624e5
tests command ignore -Wunused-variable (#10442) 2018-09-10 11:24:57 -04:00
Daniel Agar
060463e8a7
parameters lib convert to c++ (#10267) 2018-09-04 09:18:28 -04:00
Daniel Agar
ab8bf09996 tests cmd remove unused stack module option 2018-09-02 15:31:54 -04:00
Daniel Agar
7cc0e69fcd add px4fmu-v{3,4,5} stackcheck configs 2018-09-02 14:16:04 -04:00
PX4 Build Bot
cbd1636d8d Update submodule matrix to latest Fri Aug 31 21:31:02 UTC 2018
- matrix in PX4/Firmware (468f28463eabc30843e606546d642adc1a62fe10): b815fc97c4
    - matrix current upstream: dc3af80977
    - Changes: b815fc97c4...dc3af80977

dc3af80 2018-08-27 Daniel Agar - constructors use array size rather than pointers
f1bee77 2018-08-27 Daniel Agar - use default constructors and skip unnecessary initialization
1bcf48b 2018-08-30 Daniel Agar - Quaternion from_dcm don't pass by value
2018-08-31 18:48:58 -04:00
Beat Küng
0dc8eeb118 tests: avoid using exit() 2018-08-31 18:11:58 +02:00
David Sidrane
ab26bd76ff tunes:Refactor for maintenance
Adds a single file definition to provide a single point to add
    new tunes and clearly understand, the useage: it need to be
    stopped will it not allow interruption.
2018-08-30 19:11:17 +02:00