sdm710-common: camera_motor: dont calibrate
* we have no calibration data available and our "defaults" are wrong Change-Id: I6c5eabc90a7d62b68aa5895a56c5aee1caaa4c04
This commit is contained in:
parent
8ccb690079
commit
5f311e6a7f
2 changed files with 0 additions and 11 deletions
|
@ -25,12 +25,9 @@
|
||||||
|
|
||||||
#define CAMERA_MOTOR_ENABLE "/sys/devices/platform/vendor/vendor:motor_pl/enable"
|
#define CAMERA_MOTOR_ENABLE "/sys/devices/platform/vendor/vendor:motor_pl/enable"
|
||||||
#define CAMERA_MOTOR_DIRECTION "/sys/devices/platform/vendor/vendor:motor_pl/direction"
|
#define CAMERA_MOTOR_DIRECTION "/sys/devices/platform/vendor/vendor:motor_pl/direction"
|
||||||
#define CAMERA_MOTOR_HALL_CALIBRATION "/sys/bus/platform/devices/vendor:motor_pl/hall_calibration"
|
|
||||||
#define CAMERA_MOTOR_POSITION "/sys/devices/platform/vendor/vendor:motor_pl/position"
|
#define CAMERA_MOTOR_POSITION "/sys/devices/platform/vendor/vendor:motor_pl/position"
|
||||||
#define CAMERA_PERSIST_HALL_CALIBRATION "/mnt/vendor/persist/engineermode/hall_calibration"
|
|
||||||
#define DIRECTION_DOWN "0"
|
#define DIRECTION_DOWN "0"
|
||||||
#define DIRECTION_UP "1"
|
#define DIRECTION_UP "1"
|
||||||
#define HALL_CALIBRATION_DEFAULT "170,170,480,0,0,480,500,0,0,500,1500"
|
|
||||||
#define POSITION_MID "2"
|
#define POSITION_MID "2"
|
||||||
#define POSITION_DOWN "1"
|
#define POSITION_DOWN "1"
|
||||||
#define POSITION_UP "0"
|
#define POSITION_UP "0"
|
||||||
|
@ -84,12 +81,6 @@ static void waitUntilFileChange(const std::string& path, const std::string &val,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CameraMotor::CameraMotor() {
|
|
||||||
// Load motor hall calibration data
|
|
||||||
set(CAMERA_MOTOR_HALL_CALIBRATION,
|
|
||||||
get<std::string>(CAMERA_PERSIST_HALL_CALIBRATION, HALL_CALIBRATION_DEFAULT));
|
|
||||||
}
|
|
||||||
|
|
||||||
Return<void> CameraMotor::onConnect(const hidl_string& cameraId) {
|
Return<void> CameraMotor::onConnect(const hidl_string& cameraId) {
|
||||||
auto motorPosition = get<std::string>(CAMERA_MOTOR_POSITION, "");
|
auto motorPosition = get<std::string>(CAMERA_MOTOR_POSITION, "");
|
||||||
|
|
||||||
|
|
|
@ -31,8 +31,6 @@ using ::android::hardware::Void;
|
||||||
|
|
||||||
class CameraMotor : public ICameraMotor {
|
class CameraMotor : public ICameraMotor {
|
||||||
public:
|
public:
|
||||||
CameraMotor();
|
|
||||||
|
|
||||||
Return<void> onConnect(const hidl_string& cameraId) override;
|
Return<void> onConnect(const hidl_string& cameraId) override;
|
||||||
Return<void> onDisconnect(const hidl_string& cameraId) override;
|
Return<void> onDisconnect(const hidl_string& cameraId) override;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue