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: TCA9554 changes motor direction to reverse #110

Conversation

loki077
Copy link
Contributor

@loki077 loki077 commented Mar 4, 2024

This is a hard change of direction for O4 aircraft only. (ANU Aircraft)

SW-111

Copy link
Collaborator

@robertlong13 robertlong13 left a comment

Choose a reason for hiding this comment

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

Looks good to me, but I don't know 100% how that I2C GPIO is wired up, nor do I know for sure the inputs of the PMU/Starter.

@loki077
Copy link
Contributor Author

loki077 commented Mar 4, 2024

e, but I don't know 100% how that I2C GPIO is wired up, nor do I know for sure the inputs of the PMU/Starter.

This already been tested on our previous commits on ottano/dev branch but was dropped in this as we fixed the direction for all other aircrafts.

IGN_ON_STR_ON_DIR_ON_FWD = 0x11, //output register - 0001 0001 - Forward

@loki077
Copy link
Contributor Author

loki077 commented Mar 4, 2024

Do NOT Merge

@@ -16,7 +16,8 @@ class AP_ICEngine_TCA9554 {

enum TCA9554_state_t {
STARTER_OFF = 0x30, // output register - 0011 0000
STARTER_ON = 0x11, // output register - 0001 0001 - Forward direction
STARTER_ON = 0x01, // output register - 0000 0001 - Reverse direction
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think we should have a custom build as long as any aircraft with this engine type is in service ?
Maybe have #define ICENGINE_REVERSE.
Make custom builds also !

OR

have a config parameter that can reverse this (need to check this !)

This is a hard change of direction for O4 aircraft only.
SW-111:Custom ANU build for reverse engine
 - This fix will be there until any aircraft with
 reverse engine rotation is in service
 - Build folder limited to 24 chars fix
@Pradeep-Carbonix Pradeep-Carbonix force-pushed the feature/SW-111-tridge-custom-firmware-based-on-carbo-v-5-0-0 branch from 5710e18 to 75b268d Compare March 19, 2024 05:49
@Pradeep-Carbonix Pradeep-Carbonix requested a review from a user March 19, 2024 05:50
@@ -15,8 +15,12 @@ class AP_ICEngine_TCA9554 {
AP_HAL::OwnPtr<AP_HAL::I2CDevice> dev_TCA9554;

enum TCA9554_state_t {
STARTER_OFF = 0x30, // output register - 0011 0000
STARTER_ON = 0x11, // output register - 0001 0001 - Forward direction
STARTER_OFF = 0x30, // output register - 0011 0000
Copy link
Contributor

Choose a reason for hiding this comment

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

Testing this tomorrow

@ghost
Copy link

ghost commented May 9, 2024

This has been handled in an other PR where this is configurable.

@ghost ghost closed this May 9, 2024
@robertlong13 robertlong13 deleted the feature/SW-111-tridge-custom-firmware-based-on-carbo-v-5-0-0 branch June 17, 2024 07:09
This pull request was closed.
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.

4 participants