Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UAVCAN sensor node (and px4_fmu-v4_cannode example) #14148

Merged
merged 1 commit into from
Feb 16, 2020

Conversation

dagar
Copy link
Member

@dagar dagar commented Feb 13, 2020

This pull request resurrects the existing uavcannode module and updates it to publish baro, mag, and gps data on CAN (if that data is available on uORB). I've also created an fmu-v4 config for testing (px4_fmu-v4_cannode).

@igalloway @dk7xe this is the higher level plumbing for a CAN sensor node. We can easily enable it on the rddrone-uavcan146 once the CAN driver is settled.

Screenshot from 2020-02-13 00-07-59

nsh> uavcannode start
INFO  [uavcannode] Node ID 120, bitrate 1000000
INFO  [uavcannode] SW version vcs_commit: 0x7fffffff

nsh> uavcannode status
Pool allocator status:
        Capacity hard/soft: 500/250 blocks
        Reserved:  5 blocks
        Allocated: 4 blocks

UAVCAN node status:
        Internal failures: 0
        Transfer errors:   0
        RX transfers:      0
        TX transfers:      41998

CAN1 status:
        HW errors: 0
        IO errors: 0
        RX frames: 0
        TX frames: 41998

uavcannode: cycle time: 108497 events, 3446228us elapsed, 31.76us avg, min 17us max 377us 32.127us rms
uavcannode: cycle interval: 108497 events, 2413.46us avg, min 32us max 10037us 2813.759us rms

@dagar
Copy link
Member Author

dagar commented Feb 13, 2020

Future todo items:

  • UAVCAN node as an airframe selection
  • parameters (UAVCAN <=> PX4)
  • estimator support?
  • servo support?

@dk7xe
Copy link
Contributor

dk7xe commented Feb 13, 2020

Great! Thank you for starting on this. @LowOrbitIonCannon, @jarivanewijk , @PetervdPerk-NXP fyi

@dagar dagar force-pushed the pr-uavcannode_updates branch 3 times, most recently from 38784fb to 0d647a6 Compare February 13, 2020 15:37
@dagar dagar force-pushed the pr-uavcannode_updates branch from 0d647a6 to 8a41b90 Compare February 16, 2020 16:31
@dagar dagar changed the title [WIP] UAVCAN sensor node (and px4_fmu-v4_cannode example) UAVCAN sensor node (and px4_fmu-v4_cannode example) Feb 16, 2020
@dagar dagar marked this pull request as ready for review February 16, 2020 16:32
 - drivers/uavcannode add baro, mag, gps publications
 - delete old px4_cannode-v1 board
@dagar dagar force-pushed the pr-uavcannode_updates branch from 8a41b90 to ca365b1 Compare February 16, 2020 16:43
@dagar dagar merged commit d7c3e10 into master Feb 16, 2020
@dagar dagar deleted the pr-uavcannode_updates branch February 16, 2020 17:11
@mrpollo mrpollo mentioned this pull request Mar 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants