View previous topic :: View next topic |
Author |
Message |
Pichuqy_1
Joined: 03 Aug 2010 Posts: 38
|
linear interpolation |
Posted: Tue Feb 15, 2011 4:07 pm |
|
|
Hello everyone. I need to do a linear interpolation to use with the sensor HM55B. Order to calculate the angle with more precisciĆ³n. Someone knows a routine with which can I started? |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9245 Location: Greensville,Ontario
|
|
Posted: Tue Feb 15, 2011 4:28 pm |
|
|
Google came up with info at the parallaxx website for basic stamps, you could recode it. |
|
|
Pichuqy_1
Joined: 03 Aug 2010 Posts: 38
|
|
Posted: Tue Feb 15, 2011 4:34 pm |
|
|
I'm trying but it is very difficult. I have done in C file "CalibrateHm55bCompass.bs2" but I can not make the file "TestCalibratedHM55BCompass.bs2" because I can not understand the part of the linear interpolation. Can someone help me? |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9245 Location: Greensville,Ontario
|
|
Posted: Tue Feb 15, 2011 4:48 pm |
|
|
I had a look at the programs and they are well documented, but I feel English is not your native language.
Sorry but I do not have a compass module here, although I do have several Basic Stamps from years ago, so I can't easily convert the code and then check that it is correct.
If you have a basic stamp or know someone locally you could both work on it and see what is required to make the correct code.That way you can test the basic code, get familiar with the compass module and test your C code as well. |
|
|
|