Commit Graph

83 Commits

Author SHA1 Message Date
Simon Wilks f3fb32bc47 Unsubscribe from the topic. 2014-12-03 10:43:17 +01:00
Simon Wilks 7a344b9337 Display ESC data in the status output 2014-12-03 10:30:49 +01:00
Andrew Tridgell 7ae4f6d97e uavcan: added add_poll_fd() helper function
this makes the code clearer and avoids repeated code
2014-11-26 08:41:32 +11:00
Andrew Tridgell a7a68c88a2 uavcan: show ESC output values in uavcan status, and add arm/disarm
this makes "uavcan status" show the current output values, which is
useful for debugging. It also adds "uavcan arm" and "uavcan disarm"
commands, which are very useful for re-arming after a motor test.
2014-11-26 08:32:47 +11:00
Andrew Tridgell 724ec0ec8b uavcan: handle all ESC output in one place
moving all the ESC output handling to one place allows the limits on
actuator values to apply to all types of inputs, and will make it
easier to expand "uavcan status" to show actuator values
2014-11-26 08:32:47 +11: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
Andrew Tridgell b830137ec8 uavcan: added support for actuator_direct ORB topic
this watches the actuator_direct topic and uses it to allow for direct
output of actuator values, bypassing the mixer
2014-11-26 08:32:46 +11:00
Andrew Tridgell 2dae1bc542 uavcan: break the link between poll fd indexes and controls
this linkage was fragile and makes it harder to add new orb
subscriptions to the uavcan code
2014-11-26 08:32:46 +11:00
Holger Steinhaus 2ce2d26d52 UAVCAN: preserve original UAVCAN message timestamps 2014-11-18 14:58:04 +01:00
Holger Steinhaus e026324784 UAVCAN: fix mag report timestamp 2014-11-13 16:58:41 +01:00
Holger Steinhaus 16d74e3c31 UACVAN: add read()-style interface to mag device 2014-11-13 16:17:35 +01:00
Holger Steinhaus 0fa622f22b UAVCAN: declare mag external again to allow different rotation than the internal mag 2014-11-13 16:17:35 +01:00
Holger Steinhaus 4d489ef7f4 UAVCAN: improve mag compatibility 2014-11-13 16:17:35 +01:00
Lorenz Meier d9989962a9 Update motor test tool 2014-11-13 10:31:16 +01:00
Holger Steinhaus 7bc9a62577 code style, warnings 2014-11-12 10:10:37 +01:00
Holger Steinhaus 50b410664f UAVCAN: set bus number part of device_id to zero 2014-11-11 17:04:28 +01:00
Holger Steinhaus 51ffb887c3 UAVCAN: initialize device id for mag and baro to allow DEVIOCGDEVICEID ioctl to return useful data 2014-11-11 11:29:35 +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 1d038eed04 UAVCAN: GNSS fix message update 2014-09-03 22:44:16 +04:00
Pavel Kirienko 580b726536 UAVCAN: missing declaration warning fix 2014-08-29 14:34:29 +04:00
Lorenz Meier 62b98cc944 Merge pull request #1329 from hsteinhaus/uavcan_prio
uavcan: increased thread prio, reduces roundtrip latency by a factor of ...
2014-08-27 13:40:25 +02:00
Pavel Kirienko eab701b896 Improved UAVCAN status reporting 2014-08-26 00:52:33 +04:00
Pavel Kirienko 3866b5a5fe Resource leak fix 2014-08-24 03:02:52 +04:00
Pavel Kirienko 701bd803ce UAVCAN status reporting and proper termination 2014-08-24 00:20:57 +04:00
Pavel Kirienko e9da830316 UAVCAN: initializing all bridges by default 2014-08-24 00:06:47 +04:00
Pavel Kirienko 0f124963d4 UAVCAN: Minor improvement of the GNSS bridge 2014-08-23 23:43:01 +04:00
Pavel Kirienko ce73be514e UAVCAN: Proper CDev initialization from sensor bridges 2014-08-23 23:30:49 +04:00
Pavel Kirienko 4e0d7c6b0e UAVCAN: redundant sensors support 2014-08-23 23:14:59 +04:00
Pavel Kirienko 6a8971e28f New UAVCAN initialization logic 2014-08-23 17:31:46 +04:00
Pavel Kirienko 7132141cc4 UAVCAN: Printing all known sensor bridge names with usage info 2014-08-22 20:33:35 +04:00
Pavel Kirienko 6870cd4d3d UAVCAN baro driver 2014-08-22 20:15:11 +04:00
Pavel Kirienko 6ebd59c633 UAVCAN: improved sensor bridge factory 2014-08-22 15:52:35 +04:00
Pavel Kirienko bdc2ecd9f6 Too much Ctrl+C Ctrl+V 2014-08-22 15:41:21 +04:00
Pavel Kirienko e32ff6004b UAVCAN mag driver fix 2014-08-22 15:31:08 +04:00
Pavel Kirienko 29dbe8aed5 UAVCAN magnetometer driver 2014-08-22 14:27:32 +04:00
Pavel Kirienko 54affaf633 UAVCAN sensor enable command fix 2014-08-22 13:58:05 +04:00
Pavel Kirienko f820010a2b UAVCAN GNSS subscription name fix 2014-08-22 13:24:31 +04:00
Pavel Kirienko 0d9f6b6e2e UAVCAN: Refactored and generalized sensor bridge support 2014-08-22 01:52:23 +04:00
Holger Steinhaus 09a9ea87e7 uavcan: increased thread prio, reduces roundtrip latency by a factor of 5..7 2014-08-19 22:48:15 +02:00
Pavel Kirienko 33762ce861 UAVCAN ESC mixer: removed the failsafe placeholder, it's no use here 2014-08-06 12:40:07 +04:00
Anton Babushkin 5824607c76 uavcan: fix actuator groups subcriptions and poll() 2014-08-02 13:01:42 +02:00
Pavel Kirienko 9725a16352 UAVCAN: Fixed short git hash computation 2014-08-02 03:34:57 +04:00
Pavel Kirienko b606674fc7 Removed misleading comment from the UAVCAN module makefile 2014-08-01 01:04:24 +04:00