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

AP_ICEngine: Add CRANK_DIR for direction control of TCA9554 Engine #27076

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

loki077
Copy link
Contributor

@loki077 loki077 commented May 16, 2024

Added a parameter CRAN_DIR where 0 if forward and 1 or greater is reverse direction for Engine Cranking. This is particular with Hirth Engine where both options are available.

libraries/AP_ICEngine/AP_ICEngine_TCA9554.cpp Outdated Show resolved Hide resolved
libraries/AP_ICEngine/AP_ICEngine.cpp Outdated Show resolved Hide resolved
@loki077 loki077 force-pushed the pr_hirth_engine_crank_dir branch 2 times, most recently from 261307f to 98c4a3a Compare August 13, 2024 05:40
#if AP_ICENGINE_TCA9554_STARTER_ENABLED
// @Group: _TCA9554
// @Path: AP_ICEngine_TCA9554.cpp
AP_SUBGROUPINFO(tca9554_starter, "_TCA", 19, AP_ICEngine, AP_ICEngine_TCA9554),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe just a ICE_OPTIONS bit instead? That would be a lot smaller patch and not clutter up parameters. We only need a single bit for the direction

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes that would be good, as if there where other implementation of cranking they can use that flag too for direction control.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tridge I have made the changes, have a look.

Also, if there is a need to splitting the commit into one for param mods and other for implementation then let me know.

Added the 5th bit to the ICE_OPTION parameter to enable CRANK_DIR_REVERSE control, specifically for managing Hirth engine direction using AP_ICEngine_TCA9554.
@loki077 loki077 force-pushed the pr_hirth_engine_crank_dir branch from 98c4a3a to f69806c Compare August 16, 2024 01:26
@Hwurzburg Hwurzburg added the WikiNeeded needs wiki update label Aug 16, 2024
@tridge tridge merged commit 94059ed into ArduPilot:master Aug 19, 2024
93 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants