LaserPING Sensor
stuartX
Posts: 88
in Accessories
Can the LaserPING sensor be turned sideways or upside down and read properly?
Comments
Oh, wait, has someone ever said, "No"?
-Phil
I'm less conversant in my new, older age, I suppose. Heading towards the land of curmudgeons, one step at a time!
Ken Gracey
Ken could have answered 1 or 0 for even a shorter answer... :-)
Yes.
Benny; F U N E M?
Server; S
Benny; F U N E X?
Server; S
Benny; F U N E M N X?
Server; 9
At that point Benny broke into English.
It was quite funny.
Benny Hill? Had to check but it was Ronnie Barker of the Two Ronnies and I think it was a Swedish restaurant
Classics!
Not to worry Ken, I'll keep an open seat for you here at the bar. Happy hour starts at four -- Central time, so better on ya -- and the screwdrivers and bloody marys are half off. There's also a killer golf video game in the corner and darts.
-Phil
I'm on my way, Chief of Curmudgeons! I might even see you this summer for the BlocklyProp vs. Spin ASV man-on-man challenge. Still thinking that through, and trying to figure out if I really need to account for the fact the earth isn't flat and do all that math in BlocklyProp.
But you do need to scale longitude distance based upon latitude:
http://pthsrobotics.org/documents/22 January 2015.pdf
-Phil
To save on calculation coding I presume it is OK to follow the coding scheme below to work out the distance and bearing between two points;
- calculate latitude and longitude coordinates for each point (Lat and Long), each from 0deg using the radius of earth
- calculate the difference between co-ordinates, d_Lat and d_Long
- scale d_Long by multiplying it with cos(ave Lat)
- use coordinate geometry to find bearing and distance between the points.
Look at the GPSMath code I posted here:
http://forums.parallax.com/discussion/comment/1431330/#Comment_1431330
Let's either continue the discussion there, since it's more relevant to that thread, or start a new one.
Thanks,
-Phil