Commit Graph
38 Commits
Author SHA1 Message Date
Daniel Agar ea3acb7121 cmake remove circular linking and reorganize
- px4_add_module now requires MAIN
 - px4_add_library doesn't automatically link
2018-04-29 21:48:54 -04:00
Daniel Agar edea4a369e uavcan start enforcing code style (#7856) 2017-08-25 13:07:21 -04:00
Michael Schaeuble d53598ed58 UAVCAN: Publish actuator outputs 2017-07-09 14:41:48 +02:00
Pavel Kirienko 2b2c307eac Performance audit (intentionally duplicates #6829) (#6847)
* UAVCAN ESC output: removing ESC output channels from published message that are always zero. This allows the UAVCAN stack to always transfer only the minimum number of output values, avoiding redundant zeroes and the associated increase in bus load and CPU time

* Added a separate mixer file for CAN quadrotor

* Sampling profiler improvements

* PMSP: Output more endpoints

* Matrix update

* libc usage workaround

* Removed UAVCAN perfcounters

* Matrix submodule update
2017-03-18 04:16:20 -10:00
David Sidrane c20b85e6ad Revert "UAVCAN performance audit (#6829)" (#6846)
This reverts commit 21e04c9f7a.
2017-03-18 04:04:43 -10:00
Pavel Kirienko 21e04c9f7a UAVCAN performance audit (#6829)
* UAVCAN ESC output: removing ESC output channels from published message that are always zero. This allows the UAVCAN stack to always transfer only the minimum number of output values, avoiding redundant zeroes and the associated increase in bus load and CPU time

* Added a separate mixer file for CAN quadrotor

* Sampling profiler improvements

* PMSP: Output more endpoints

* Matrix update

* libc usage workaround

* Removed UAVCAN perfcounters
2017-03-18 03:47:09 -10:00
Lorenz Meier 192cde408a Remove unnecessary C++11 usage in UAVCAN 2016-08-18 21:44:15 +02:00
Pavel Kirienko e27d3f4e13 Added new configuration parameter UAVCAN_ESC_IDLT.
This parameter, when enabled, enforces that the UAVCAN ESC driver never outputs zero throttle
while the system is armed. This feature is disabled by default, so the change will not break
the experience of current users.
2016-08-18 17:14:53 +02:00
Pavel Kirienko 11a31d5ecb ESC command transfer priority assigned a high value. This change is not directly related to the current PR, but this change seems minor enough to be pulled in with it. 2016-03-14 09:07:46 +01:00
Pavel Kirienko 1a64b5fa01 Assigned a low transfer priority value for hardpoint commands 2016-03-14 09:07:46 +01:00
blah 6a06c59c09 more cleanup 2016-03-14 09:07:46 +01:00
blah 5e596df859 fixed mutex in hardpoint_controler_set() 2016-03-14 09:07:46 +01:00
blah 39fc9c7761 clean up.... 2016-03-14 09:07:46 +01:00
blah ef7e11e56c more format fixing... 2016-03-14 09:07:46 +01:00
blah 1188aa138c Fixed formating and cleanup 2016-03-14 09:07:46 +01:00
blah 26b7fff239 buch of error fixes for the uavcan hardpoint stuff 2016-03-14 09:07:46 +01:00
blah ecf2b56013 fix timer in hardpoint controller 2016-03-14 09:07:46 +01:00
blah fb4db49ea0 Added Hardpoint controller to UAVCAN for OpenGrab EPM support
periodic update timer is broken needs fixing
2016-03-14 09:07:46 +01:00
Lorenz Meier 21d1b4ba2e Merged beta into master 2015-08-22 14:06:01 +02:00
David Sidrane 22d46fa733 Merged master_uavcan_modular src/modules/uavcan/ 2015-07-09 11:22:35 -10:00
Lorenz Meier e07731de7a Move esc_status to generated topics 2015-05-27 15:21:31 -07: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
Pavel Kirienko ae0e2d7209 Removing extra UAVCAN perfcounters 2015-01-21 14:54:24 +01:00
Pavel Kirienko d87bb4dfcb Revert "Intrusive changes made for UAVCAN profiling. Will be reverted in the next commit (this one is needed to keep the changes in history)"
This reverts commit 4c301d9dcf180e39186fa6753c7a3d3215b3cfa7.
2015-01-21 14:54:23 +01:00
Pavel Kirienko 6bbacc4271 Intrusive changes made for UAVCAN profiling. Will be reverted in the next commit (this one is needed to keep the changes in history) 2015-01-21 14:54:23 +01:00
Pavel Kirienko 7f0f4b3072 UavcanEscController broadcasting percounter 2015-01-21 14:54:22 +01:00
Andrew Tridgell 8e44ec2e3b uavcan: prevent crash in ESC driver
passing in more than 8 actuators would crash the ESC driver. We need
to check again the array size of the _esc_status.esc, which is
CONNECTED_ESC_MAX
2014-11-26 08:32:47 +11:00
Andrew Tridgell ead0458e97 uavcan: don't force motors to keep spinning at zero throttle
Forcing motors to keep spinning when armed should be a policy decision
up at the vehicle type level, not hard coded down in the ESC
driver. It isn't appropriate for fixed wing or ground vehicles for
example.

We could add an ioctl to enable "spin when armed" if just setting a
small value in the vehicle code is inconvenient
2014-11-26 08:32:47 +11:00
Holger Steinhaus 7bc9a62577 code style, warnings 2014-11-12 10:10:37 +01:00
Holger Steinhaus 0800fa4715 UAVCAN: implemented motor testing 2014-11-03 20:23:22 +01:00
Holger Steinhaus 58f36714f8 UAVCAN: allow to arm single ESCs 2014-11-03 18:51:43 +01:00
Pavel Kirienko f9856c6228 ESC status - supporting negative RPM 2014-10-15 13:48:55 +04:00
Pavel Kirienko ecd144b8b4 Publishing esc_setpoint_raw from the UAVCAN driver 2014-10-13 17:07:14 +04:00
Pavel Kirienko 1bf4270e3e Update ORB topic 'esc_status' 2014-10-13 17:01:34 +04:00
Pavel Kirienko e5a77a638a ESC status feedback 2014-10-12 20:56:45 +04:00
Pavel Kirienko ced75deebe ESC scaling fix 2014-10-12 15:34:28 +04:00
Pavel Kirienko 0d9f6b6e2e UAVCAN: Refactored and generalized sensor bridge support 2014-08-22 01:52:23 +04:00