Find Jobs
Hire Freelancers

Help modify onSensorChanged to properly return azimuth on Google Pixel phone

$10-30 USD

Cancelado
Publicado há mais de 7 anos

$10-30 USD

Pago na entrega
*** Here is the problem to be solved *** (Code is included below) My onSensorChanged method works great on a Samsung S5, but functions very poorly on my new Google Pixel that I am working with. I need help from someone who IS SURE they can modify this onSensorChanged method to ensure that the azimuth is properly returned when Google Pixel is held in a landscape position with the camera of the phone facing the direction the user is facing. @Override public void onSensorChanged(SensorEvent evt) { if ([login to view URL]() == Sensor.TYPE_ACCELEROMETER) { gravSensorVals = [login to view URL](); grav[0] = [login to view URL][0]; grav[1] = [login to view URL][1]; grav[2] = [login to view URL][2]; } else if ([login to view URL]() == Sensor.TYPE_MAGNETIC_FIELD) { magSensorVals = [login to view URL](); mag[0] = [login to view URL][0]; mag[1] = [login to view URL][1]; mag[2] = [login to view URL][2]; } if (gravSensorVals != null && magSensorVals != null) { [login to view URL](RTmp, I, gravSensorVals, magSensorVals); int rotation = [login to view URL](this); if (rotation == 1) { [login to view URL](RTmp, SensorManager.AXIS_X, SensorManager.AXIS_MINUS_Z, Rot); } else { [login to view URL](RTmp, SensorManager.AXIS_Y, SensorManager.AXIS_MINUS_Z, Rot); } [login to view URL](Rot, results); [login to view URL] = (float)(((results[0]*180)/[login to view URL])+180); [login to view URL] = (float)(((results[1]*180/[login to view URL]))+90); [login to view URL] = (float)(((results[2]*180/[login to view URL]))); Log.d(TAG, "azimuth = "+ [login to view URL]); } } //-------------------------------------------------------- Like I said, this works GREAT on the S5 but very poorly on the Google Pixel. If you can help me modify this code to work well on the Google Pixel to access the azimuth, then I want to hire you to help me. I need this help completed as quickly as possible.
ID do Projeto: 12865030

Sobre o projeto

4 propostas
Projeto remoto
Ativo há 7 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
4 freelancers estão ofertando em média $28 USD for esse trabalho
Avatar do Usuário
It's my duty to deliver credible work to my clients. Check my previous work and the responses speak for themselves. I am ready to work for you. Thank you alot.
$17 USD em 6 dias
4,7 (12 avaliações)
3,8
3,8
Avatar do Usuário
$35 USD em 10 dias
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) UNITED STATES
Carthage, United States
5,0
48
Método de pagamento verificado
Membro desde set. 17, 2012

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.