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

Created fake PWM device for HIL #46

Merged
merged 7 commits into from
Nov 13, 2012
Merged

Created fake PWM device for HIL #46

merged 7 commits into from
Nov 13, 2012

Conversation

LorenzMeier
Copy link
Member

This creates a fake PWM device for hardware in the loop setups. This is needed to be able to load a mixer a la:

fmu mode_hil_pwm
mixer load /dev/pwm_output /etc/mixers/FMU_AET.mix

This is not an actual pull request, but rather a convenient way to send a diff via web. There is still a missing piece around the lines below - without a call to up_pwm_ioctl() the mixer file is not loaded - can this safely just be added to the HIL 8 PWM case?

switch(_mode) {
    case MODE_2PWM:
    case MODE_4PWM:
        ret = pwm_ioctl(filp, cmd, arg);
        break;
    case MODE_HIL_8PWM:
        /* do nothing */
        debug("loading mixer for virtual HIL device");
        ret = 0;
        break;
    default:
        debug("not in a PWM mode");
        break;
}

@px4dev
Copy link
Contributor

px4dev commented Nov 10, 2012

If you want a fake 8pwm mode, and you want to implement it with the fmu driver, then you'll need to do it properly.

However, it would almost certainly be simpler and cleaner to have a separate HIL PWM output driver.

@LorenzMeier LorenzMeier merged commit bb0c745 into master Nov 13, 2012
PX4BuildBot added a commit that referenced this pull request Jan 7, 2020
NuttX:
 - https://github.com/PX4-NuttX/nuttx/tree/master
 - PX4/NuttX@973938d

Changes from PX4/NuttX (PX4/NuttX@9331fda) in current PX4/master (fc9df31)
PX4/NuttX@9331fda...973938d

973938dc1a (HEAD, origin/master) Merge branch 'master' of bitbucket.org:nuttx/nuttx
c5e25dc259 Merge branch 'master' of github.com:apache/incubator-nuttx
9d5d60f Run all .c and .h files in last PR49 through nxstyle.
a8d63c0 various fixes (#49)
077ef70 cxd56xx improvements (#48)
c5090d3 Merge branch 'master' of github.com:apache/incubator-nuttx
1c53d2b Nxstyle checkpatch support (#47)
4ea49c5 Fix issues on fe310 including interrupt handling (#46)
926a41f bcm43xxx: correct typo error to fix build break in photon board (#45)
aad99a5 Fix typo in the file_read description (#44)

Apps:
 - https://github.com/PX4/NuttX-apps/tree/master
 - PX4/NuttX-apps@74ba8ff

Changes from PX4/NuttX-apps (PX4/NuttX-apps@91b6ad6) in current PX4/master (fc9df31)
PX4/NuttX-apps@91b6ad6...74ba8ff

74ba8ff2 (HEAD -> master, origin/master) Merge pull request #5 from xiaoxiang781216/fix-void-cast
f00b4e6f Merge pull request #4 from xiaoxiang781216/fix-suffix
85715845 Unify the void cast usage
6a65664c Application.mk remove _main suffix from REGLIST
73e1696e Merge pull request #3 from xiaoxiang781216/builtin
7a645baa Add .updated target to handle the no builtin app case correctly
8c8c4813 fix builtin_list.c:58:10: fatal error: builtin_proto.h: No such file or directory (#2)
64bc8f5b Run all .c and .h files modified in last PR through nxstyle.
49c99750 Wapi simplify (#1)
0536c5b5 apps/nshlib/nsh_parse.c:  Correct an error found in build testing.  Commit 2a462c78aa5f4ea6dc374eedd86bc85f9f79a0c4 was insufficient.  It was a mistake to revert Xiang's change of commit 9defae8af641752506d92b72ea68c8f94d24d580.  But we are on a different vector now.
PX4BuildBot added a commit that referenced this pull request Jul 9, 2024
    - gz in PX4/Firmware (6bd81f3): PX4/PX4-gazebo-models@881558c
    - gz current upstream: PX4/PX4-gazebo-models@312cd00
    - Changes: PX4/PX4-gazebo-models@881558c...312cd00

    312cd00 2024-07-08 chfriedrich98 - Add rover ackermann model (#46)
PX4BuildBot added a commit that referenced this pull request Jul 9, 2024
    - gz in PX4/Firmware (8221940): PX4/PX4-gazebo-models@881558c
    - gz current upstream: PX4/PX4-gazebo-models@312cd00
    - Changes: PX4/PX4-gazebo-models@881558c...312cd00

    312cd00 2024-07-08 chfriedrich98 - Add rover ackermann model (#46)
PX4BuildBot added a commit that referenced this pull request Jul 10, 2024
    - gz in PX4/Firmware (419652b): PX4/PX4-gazebo-models@881558c
    - gz current upstream: PX4/PX4-gazebo-models@312cd00
    - Changes: PX4/PX4-gazebo-models@881558c...312cd00

    312cd00 2024-07-08 chfriedrich98 - Add rover ackermann model (#46)
PX4BuildBot added a commit that referenced this pull request Jul 10, 2024
    - gz in PX4/Firmware (3fe609f): PX4/PX4-gazebo-models@881558c
    - gz current upstream: PX4/PX4-gazebo-models@312cd00
    - Changes: PX4/PX4-gazebo-models@881558c...312cd00

    312cd00 2024-07-08 chfriedrich98 - Add rover ackermann model (#46)
PX4BuildBot added a commit that referenced this pull request Jul 11, 2024
    - gz in PX4/Firmware (2c3401d): PX4/PX4-gazebo-models@881558c
    - gz current upstream: PX4/PX4-gazebo-models@312cd00
    - Changes: PX4/PX4-gazebo-models@881558c...312cd00

    312cd00 2024-07-08 chfriedrich98 - Add rover ackermann model (#46)
dagar pushed a commit that referenced this pull request Jul 11, 2024
    - gz in PX4/Firmware (2c3401d): PX4/PX4-gazebo-models@881558c
    - gz current upstream: PX4/PX4-gazebo-models@312cd00
    - Changes: PX4/PX4-gazebo-models@881558c...312cd00

    312cd00 2024-07-08 chfriedrich98 - Add rover ackermann model (#46)
NicholasCL1994 pushed a commit to NicholasCL1994/PX4-Autopilot that referenced this pull request Aug 21, 2024
* added rover ackermann model

* added rover world and removed default world changes
vertiq-jordan pushed a commit to iq-motion-control/PX4-Autopilot that referenced this pull request Aug 21, 2024
    - gz in PX4/Firmware (2c3401d): PX4/PX4-gazebo-models@881558c
    - gz current upstream: PX4/PX4-gazebo-models@312cd00
    - Changes: PX4/PX4-gazebo-models@881558c...312cd00

    312cd00 2024-07-08 chfriedrich98 - Add rover ackermann model (PX4#46)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants