-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
pwm_input modifications #2196
pwm_input modifications #2196
Conversation
publication to range_finder topic added
Thanks! Doing a full review now. |
@Zefz This brings the Lidar-Lite to life. I need to think a moment about how to layer this architecturally. |
@LorenzMeier I was planning to get all rangefinders and altimeters data into |
@@ -70,6 +71,7 @@ MODULES += modules/commander | |||
MODULES += modules/navigator | |||
MODULES += modules/mavlink | |||
MODULES += modules/gpio_led | |||
MODULES += modules/gpio_tool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be there. Included for testing, forgot to remove. :(
LidarLite still needs working PWM drivers (#1949). |
@arbulgazar it would be awesome if you could do your changes against #2200 👍 |
I can't get this to run yet, I keep getting:
Pin 5 and 6 are connected as shown here http://copter.ardupilot.com/wiki/common-optional-hardware/common-rangefinder-landingpage/common-rangefinder-lidarlite/#connecting_to_pixhawk_via_pwm, the rail is powered with 5v, and I'm using a 300 Ohm pull-down. Any pointers what I'm doing wrong? Thanks. |
Try one kilo ohm instead |
Actually I think it's rather software related. Did you put FMU in PWM mode and / or disabled the driver? I need to check if there are missing dependencies / startup order things. |
Already re-soldering :). I didn't touch the fmu command... |
I switched to 1k Ohm and disabled the fmu command, still nothing! |
@bansiesta are you using this #1949? |
@TSC21: I'm currently trying pwm_input. Is this not needed for ll40ls start pwm? |
Sorry, don't get it. Tell me what I need to run in what order and what you suspect to work. |
@bansiesta I can't really tell. From what I know, I2C drivers are working for LidarLite but have problems related to bus hold, which is a problem related to LidarLite only. That's why a PWM driver is needed. But, from what I can see, there's no current implementation for using PWM with LidarLite in the firmware, and that's what @Zefz was implementing, but it didn't finish it. So, I suspect @Zefz code must be done first before getting this to work. |
Aha, seems to work now, a |
Good catch :D BTW, check 43668cc. Big change on structure, as |
@TSC21: thanks for the heads-up. I'll try to merge that in later. |
I wasn't modifying start-up scripts, was not sure you want lidar starting with fmu, but probably should have wrote this in comment: |
I will do changes with respect to #2200 after week or so. Thesis is demanding time now, can't push it back. |
@arbulgazar: Thanks for your work, I based my work on it and went from there. It's merged now. Btw: |
- mavlink in PX4/Firmware (8d9467d): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@2f44cef - Changes: mavlink/mavlink@5e3a42b...2f44cef 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (7a5494e): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@2f44cef - Changes: mavlink/mavlink@5e3a42b...2f44cef 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (e217eb7): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (27cff50): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (95020bb): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (e67ad42): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (c94db0d): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (4186b81): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (df875e1): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (44f58db): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (7bb7f9d): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (ece1d57): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (4d99f7e): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (a8d266d): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (922f18d): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (f8451e0): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (5fb3e72): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (691cf1b): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (d9fd151): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (e3623cd): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (2ebf931): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (7e65b5b): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (b6bced6): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (572b272): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (e671dc7): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (f7b9069): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (0a4203f): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (50ae227): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (9b967fe): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (5846ec8): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (36e663a): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (4c767d9): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
- mavlink in PX4/Firmware (df84355): mavlink/mavlink@5e3a42b - mavlink current upstream: mavlink/mavlink@619947d - Changes: mavlink/mavlink@5e3a42b...619947d 619947d8 2024-12-19 Hamish Willee - common.xml - PING fix (#2197) 2f44ceff 2024-12-18 Julian Oes - common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)
** Reset feature added for pwm_input driver. **
GPIO_GPIO5_OUTPUT (AUX 6 signal pin) is currently used as reset pin.
Reset is happening if pwm_input don't get any data for some time, to prevent reset-spamming while lidar is not connected ROMFS should toogle pwm_input driver on parameter. (not implemented in this fork)
** Publication to range_finder topic added **
range_finder topic is used by several sensors (pwm_input, i2c lidar interface and range_finder currently) and ROMFS should have cases to enable ony one of them.