Re: Smart Hand Controller Old and New version Questions #esp32


Howard Dutton
 

On Thu, Jun 3, 2021 at 10:59 AM, Khalid Baheyeldin wrote:
{ 0, 61,  0, 0,   255,   331,   10088},                        // NGC0001,     G, 00:07:15.84, +27:42:29.1, Peg,       
ESP32
{ 0, 61,  0, 0,       1,  9990,   0.12107,  27.70808}, // NGC0001,     G, 00:07:15.84, +27:42:29.1, Peg,
This is a compact Declination value for example... instead of using a float (4 bytes) use an 16bit int (2 bytes.)

10088/32767 = 0.3078707 (such that the full 16 bit range being +/- 32767 maps to +/- 90 degrees.)
0.3078707 * 90 = 27.70837 (error in this case was about 0.00029 degrees so 1 arc-second.)
,

Join main@onstep.groups.io to automatically receive all group messages.