-
Notifications
You must be signed in to change notification settings - Fork 0
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
AP_ICEngine: TCA9554 changes motor direction to reverse #110
Conversation
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.
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.
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.
|
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 |
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.
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
5710e18
to
75b268d
Compare
@@ -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 |
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.
Testing this tomorrow
This has been handled in an other PR where this is configurable. |
This is a hard change of direction for O4 aircraft only. (ANU Aircraft)
SW-111