ccatobs/telescope-control-system

function to return currently command position in requested coordinate system units

Opened this issue · 2 comments

If a position is current commanded return the following json

{
time: 1212312312312
coord-sys: ICRS
lam_cmd : 0
bet_cmd : 0
lam_act : 10
bet_act : 20
}

convert from tel AZ/EL back to requested coordsys

This could be folded into the datasets structure returned from the ACU or it could be a separate JSON request

I need to know which command was commanded last so I know what is the currently command coordinate system and can make the current conversion from az/ele to the astronomical co-ordinate system. I can do this on the translator side but it would be good to have this within the TCS.

The returned position should also include the pointing offset, so we when we covert the actual az el into astronomical co-ordinated the pointing offset should be added back in