Beat Küng
be25c337f9
bl_update: add documentation & do cleanup (remove err(), ...)
2017-07-14 11:57:11 +02:00
Beat Küng
35aa95c25f
perf_counter.c: mention that the latency buckets are in us
2017-07-14 11:57:11 +02:00
Beat Küng
872049dc57
pwm.cpp: extend documentation for Oneshot
2017-07-14 11:57:11 +02:00
Beat Küng
fac6a829c4
pwm.cpp: fix issues by clang tidy (nullptr & void)
2017-07-14 11:57:11 +02:00
Beat Küng
37ff267b68
param.cpp: fix issues by clang tidy (nullptr & void)
2017-07-14 11:57:11 +02:00
Beat Küng
b32b0d9b17
hardfault_log: add documentation
2017-07-14 11:57:11 +02:00
Beat Küng
488bc9d7f3
hardfault_log.h: fix comments
2017-07-14 11:57:11 +02:00
Beat Küng
d309617998
param.c: rename to cpp and add module documentation
...
use c++ so that raw string literals can be used
2017-07-14 11:57:11 +02:00
Beat Küng
647bdef855
pwm.c: rename to pwm.cpp and add module documentation
...
use c++ so that raw string literals can be used
2017-07-14 11:57:11 +02:00
Beat Küng
3f6769d41e
uorb: add module documentation
2017-07-14 11:57:11 +02:00
Beat Küng
f25549169c
fmu: wait until running, and handle mode_rcin properly
...
when the fmu was already running in a pwm mode, changing to mode_rcin would
not have any effect.
2017-07-14 11:57:11 +02:00
Beat Küng
3b64be44f4
ModuleBase: add wait_until_running() method
2017-07-14 11:57:11 +02:00
Beat Küng
6778be2c6e
mavlink: remove 'p' from px4_getopt()
...
It is not handled and not documented.
2017-07-14 11:57:11 +02:00
Beat Küng
0909b58981
fmu.cpp: fix wrong command usage mode_pwm3cap2 -> mode_pwm2cap2
2017-07-14 11:57:11 +02:00
Beat Küng
053eb12329
Module documentation: switch to Markdown
2017-07-14 11:57:11 +02:00
Beat Küng
c22b79ece5
pwm.c: fix wrong comment
2017-07-14 11:57:11 +02:00
Beat Küng
63af349bba
px4_module.h: include <cstring> for strcmp()
2017-07-14 11:57:11 +02:00
Beat Küng
59bde454b5
ModuleBase: instanciate -> instantiate
2017-07-14 11:57:11 +02:00
Beat Küng
f691ae2a4f
mavlink: update usage & module description
2017-07-14 11:57:11 +02:00
Beat Küng
2ad7194ed3
pwm command: update usage
2017-07-14 11:57:11 +02:00
Beat Küng
9e4d1235ac
pwm command: fix -e param (it was just ignored)
...
to keep the behavior the same, remove the -e flags from all pwm commands
that use it in the scripts.
2017-07-14 11:57:11 +02:00
Beat Küng
317c8bf557
uorb: update usage
2017-07-14 11:57:11 +02:00
Beat Küng
7b7836de05
param command: update usage
2017-07-14 11:57:11 +02:00
Beat Küng
c1788c4e43
top: add module description & usage
2017-07-14 11:57:11 +02:00
Beat Küng
6ea9762117
fmu: convert to ModuleBase
...
Sorry for the large patch :)
- move cleanup into destructor (this was done on the wrong task before)
- move init into init() method
- sensor & peripheral reset do not start/stop fmu anymore
- remove err & errx (they do not release the lock and could lead to dead-
locks)
2017-07-14 11:57:11 +02:00
Beat Küng
2da0ae45e5
fmu: some cleanup
...
g_port_mode was never changed.
2017-07-14 11:57:11 +02:00
Beat Küng
16740dd5cd
io timers: fix some typos
2017-07-14 11:57:11 +02:00
Beat Küng
7361244359
logger: convert to use ModuleBase
2017-07-14 11:57:11 +02:00
Beat Küng
5bdbfa9b5c
send_event: convert to use ModuleBase
2017-07-14 11:57:11 +02:00
Beat Küng
04c4339ca3
module: add a common module base class with usage printf methods
...
Provides:
- thread-safety for module start/stop
- some shared code for module start/stop. Should also be less prone to
errors.
- constructor & destructors are called from within the new module thread
- can be used for work queue & thread modules
- strutured & formal way for module printf usage & module documentation
Limitation:
- supports only modules with one instance (eg. not mavlink)
2017-07-14 11:57:11 +02:00
David Sidrane
b5275ecd52
ver:The recent changes to version.c return values in base10
...
This is part 2 of the fix. The tool that extracts the nuttx
git tag was broken by a new tag added the did not match
the form nuttx-M.mm. To the value was printed as
OS: NuttX
OS version: 0.0.0 c0 (192)
Once that issue was fixed, it was apparent that recent
changes to version.c return the values as base 10, before
it was hex. This fixes the formatting.
2017-07-14 10:46:30 +02:00
Beat Küng
eeb1895922
i2c_posix: fix simulate variable cannot be assigned on QuRT
2017-07-13 16:53:28 +02:00
Beat Küng
46a7287178
linux_pwm_out: add support for ESC calibration
2017-07-13 16:53:28 +02:00
Beat Küng
bf11362dae
i2c_posix: fix use of wrong device path
...
previously, get_devname() was used as the I2C device path, but on NuttX,
get_devname() is the device file which the driver creates. This patch
changes it, so the sematics are the same as on NuttX: both now use _bus
to decide to which I2C bus device to talk to.
I did not see any other use-cases than the led on ocpoc.
2017-07-13 16:53:28 +02:00
Beat Küng
fc4affbb5f
ocpoc_mmap_pwm_out: remove this driver, it's in linux_pwm_out now
2017-07-13 16:53:28 +02:00
Beat Küng
d17a7b46e8
linux_pwm_out: add ocpoc_mmap mode
2017-07-13 16:53:28 +02:00
Beat Küng
8527c8276f
drivers: rename rpi_pwm_out to linux_pwm_out
2017-07-13 16:53:28 +02:00
Beat Küng
5cbee15309
ocpoc_adc: make xadc_fd a local variable instead of a class member
2017-07-13 16:53:28 +02:00
Beat Küng
2cf88156a9
cmake: remove -Os from COMPILE_FLAGS in px4_add_module()
...
This is already added to the global list, and we already removed this
flag previously, but some of them sneaked back in.
2017-07-13 16:53:28 +02:00
Beat Küng
243ae00e4e
rpi_pca9685_pwm_out: remove this driver, it's now in rpi_pwm_out
2017-07-13 16:53:28 +02:00
Beat Küng
51dc988914
rpi_pwm_out: fix mixing output handling (use correct number of outputs)
2017-07-13 16:53:28 +02:00
Beat Küng
b6942115e1
rpi_pwm_out: add support for PCA9685 output
2017-07-13 16:53:28 +02:00
Beat Küng
723f67b39a
refactor navio_sysfs_pwm_out: rename to rpi_pwm_out
2017-07-13 16:53:28 +02:00
Beat Küng
8ccbc068c2
RPI PCA9685: code cleanup
2017-07-13 16:53:28 +02:00
Beat Küng
d898b555d3
rpi_rc_in: code cleanup
2017-07-13 16:53:28 +02:00
crossa
4bde004474
1. Add parameter name in head file
...
2. Remove printf in the cpp
2017-07-13 16:53:28 +02:00
crossa
917d520378
Check _rcinput_pub is null.
2017-07-13 16:53:28 +02:00
crossa
d37280e99b
REMOVE DEBUG INGO
2017-07-13 16:53:28 +02:00
crossa
ed319ce5d5
1. Add comment written in English
...
2. Rewrite and rebase pca9685 driver
3. Try to fix issue when push the stick of channel 3 to the maxmum position, 0uswill be output to channel 1, should be maxmum pwm signal
4. Fix the code style
2017-07-13 16:53:28 +02:00
crossa
ea2a3acbd8
This driver has been tested and finished first flight
...
Now I've fixed style of the code
2017-07-13 16:53:28 +02:00