fix trajectory file saving
This commit is contained in:
@@ -147,7 +147,11 @@ struct MccMovementPathFile {
|
||||
void addComment(RT const& r, RTs const&... rs)
|
||||
{
|
||||
std::ranges::copy(_commentSeq, std::back_inserter(_buffer));
|
||||
std::ranges::copy(r, std::back_inserter(_buffer));
|
||||
if constexpr (std::is_pointer_v<std::decay_t<RT>>) { // const char*, char*, char[]
|
||||
std::ranges::copy(std::string_view{r}, std::back_inserter(_buffer));
|
||||
} else {
|
||||
std::ranges::copy(r, std::back_inserter(_buffer));
|
||||
}
|
||||
std::ranges::copy(lineDelim, std::back_inserter(_buffer));
|
||||
|
||||
if constexpr (sizeof...(RTs)) {
|
||||
@@ -199,7 +203,7 @@ struct MccMovementPathFile {
|
||||
auto tp_val = tp.count();
|
||||
|
||||
double mnt_x = MccAngle(tdata.mountPos.co_lon()).degrees(), mnt_y = MccAngle(tdata.mountPos.co_lon()).degrees(),
|
||||
tag_x = dist.x2.degrees(), tag_y = dist.y2.degrees(), dx = dist.dy.degrees(), dy = dist.dy.degrees(),
|
||||
tag_x = dist.x2.degrees(), tag_y = dist.y2.degrees(), dx = dist.dx.degrees(), dy = dist.dy.degrees(),
|
||||
dd = dist.dist.degrees();
|
||||
|
||||
addToPath(std::string_view(fmt.begin(), fmt.end()), tp_val, mnt_x, mnt_y, tag_x, tag_y, dx, dy, dd, state);
|
||||
|
||||
Reference in New Issue
Block a user