333 reputation
149
bio website tgohome.com
location Basingstoke, United Kingdom
age
visits member for 3 years, 10 months
seen May 12 '11 at 19:28

Ubuntu 10.04 User.

Uses Windows XP sometimes. Hates Vista with a passion. Interested in Windows 7, though haven't tried it much.

Programs PIC microcontrollers in C and assembly. Favours dsPICs at the moment, but hasn't tried any other microcontroller yet.

Prefers Python any day!


Dec
3
comment Quick way to determine if facing a given lat/lon pair with a heading
@whuber: How many entries? More entries = more precision, but more program memory. 128KB doesn't go far...!
Dec
3
comment Quick way to determine if facing a given lat/lon pair with a heading
@whuber Comes down to processing speed really. Most people will be in the same area (it's for model planes), so distortions in FOV can be accounted for on start up if necessary.
Dec
3
comment Quick way to determine if facing a given lat/lon pair with a heading
@whuber Ah, but it does! I am only using very short distances, and distortion is acceptable. If you want to see very similar code in action: (in Python) youtube.com/watch?v=V_fjUtqqX0M It's for augmented reality, so any distortions converge to zero as you approach the waypoints; therefore, distortions don't matter (as long as they aren't overwhelming.)
Dec
3
revised Quick way to determine if facing a given lat/lon pair with a heading
added 49 characters in body; added 16 characters in body
Dec
3
awarded  Editor
Dec
3
comment Quick way to determine if facing a given lat/lon pair with a heading
My processor has no hardware FPU, so all operations are done in software. It currently fits in 5,940 cycles for each waypoint and is accurate enough. I don't need high accuracy, and I'm sure there's at least a way to approximate it. Have a look at how I did it with my code sample.
Dec
3
revised Quick way to determine if facing a given lat/lon pair with a heading
added 642 characters in body; added 339 characters in body; deleted 46 characters in body; added 185 characters in body; added 72 characters in body
Dec
3
asked Quick way to determine if facing a given lat/lon pair with a heading
Nov
2
awarded  Scholar
Nov
2
accepted Algorithm for offsetting a latitude/longitude by some amount of meters
Oct
27
comment Algorithm for offsetting a latitude/longitude by some amount of meters
Good point - must remember to convert to radians!
Oct
27
comment Algorithm for offsetting a latitude/longitude by some amount of meters
So with the formula if I wanted to move +100m in the y direction from say 10.0 N, 10.0 E, would I just add 100 / 111111? If moving in the x direction +100m, would it be 100÷(111,111×(cos 10))? Just making sure I've got this right.
Oct
27
comment Algorithm for offsetting a latitude/longitude by some amount of meters
Thanks! Within 0.4 degrees is much better than I could have hoped for.
Oct
27
awarded  Supporter
Oct
27
comment Algorithm for offsetting a latitude/longitude by some amount of meters
I suppose this could work; what would the range be - within 10 degrees of the poles?
Oct
27
comment Algorithm for offsetting a latitude/longitude by some amount of meters
Thanks for this - looks ideal. Though I can't figure out if the distance is in meters or some other measurement.
Oct
26
comment Algorithm for offsetting a latitude/longitude by some amount of meters
Yeah, that would be fine as I'm expecting <1km offsets.
Oct
26
awarded  Student
Oct
26
asked Algorithm for offsetting a latitude/longitude by some amount of meters