Commit Graph

14 Commits

Author SHA1 Message Date
Arian
cf282db685
davinci: parts: Add a setting to calibrate the motor
Change-Id: I9f76124759bf8497b5cd72293b5c36f85b4d1787
2020-11-28 18:12:03 +01:00
Arian
236c8747e3
davinci: parts: Quickly takeback the motor in free fall
Change-Id: Ib31f4cf5b1de4cd9366b3d15945749a53d260690
2020-11-28 18:12:03 +01:00
Arian
4f2af261f3
davinci: parts: Delay creating MotorStatusCallback when the motor is opened
* Give the motor enough time to close in case it was
  still opened on boot without showing the error dialog.

Change-Id: Ibc00a999858f5067bbcf07bfecc779f1d0bf3664
2020-11-28 18:12:03 +01:00
jhenrique09
027a842a58
davinci: parts: Implement popup motor calibration
Co-authored-by: Arian <arian.kulmer@web.de>
Change-Id: If1f6c757cbf521fd27f7124284f40ea602f53ba8
2020-11-28 18:12:03 +01:00
Arian
169d43565e
davinci: parts: Directly takeback the motor if it's not closed on create
* using updateMotor does not make sense here because it
  would only close it when the state is MOTOR_STATUS_POPUP,
  but we explicitly also want to try to take it back when
  it's jammed.

Change-Id: I7594fe01266a514a9fd780d17a91b0c7f957a1e1
2020-11-28 18:12:03 +01:00
Arian
4df3381a1d
davinci: parts: clang-format
Change-Id: I90c5c1f9529277821cd3a05ba4861588e8a6f323
2020-11-28 18:12:03 +01:00
Arian
358b4e7a2b
Revert "davinci: parts: Try to take the motor back on boot when opened"
This reverts commit b4dca743ea.
2020-11-28 18:12:03 +01:00
Arian
5c58f2e504
davinci: parts: Adjust for new led labels in kernel
Change-Id: I8ce322f58d2af6fee20f1a9eda91e68b0ec59b05
2020-11-28 18:12:02 +01:00
jhenrique09
b4dca743ea
davinci: parts: Try to take the motor back on boot when opened
Co-authored-by: Arian <arian.kulmer@web.de>
Change-Id: I36ff53e23221b6704f0fa5e108329722cf71f504
2020-08-05 14:03:31 +02:00
jhenrique09
619c58031f
davinci: parts: Check if motor is busy before doing any operation
Change-Id: I83e383d5f6d3d8e723259bc55945aab48e5acd6c
2020-08-05 14:03:31 +02:00
jhenrique09
65c44dd66e
davinci: parts: Add popup camera sound effects and LED toggle
Change-Id: Iaf66650ae68d2680fa0c9b933f2c4e634bc21e74
2020-08-05 14:03:31 +02:00
TheScarastic
932a2bcad0
davinci: parts: Add support for camera popup light
Change-Id: I531123cc6db5e823490c0c5bcf31bafe068a49f5
2020-08-05 14:03:31 +02:00
TheScarastic
89e3be0eee
davinci: Initial popup camera impl
Change-Id: I9b34ec87715febedfe173e9f9ef5ccdbf7521f35
2020-08-05 14:03:31 +02:00
Arian
8b5675114b
davinci: parts: Import from xiaomi_sdm845-common
e261035d91/parts

Change-Id: I442f48780ca020f3e420ee4ccaf8ac07b05457cb
2020-08-05 14:03:31 +02:00