gps image-time attitude 拟合精度
This commit is contained in:
@@ -53,12 +53,15 @@ func (it *ImageTime) Interp(imgrow int, cross int) (float64, float64) {
|
||||
return t, dt
|
||||
}
|
||||
|
||||
func (it *ImageTime) Print(n int, cross int) {
|
||||
f, _ := os.Create("log/image_time.txt")
|
||||
func (it *ImageTime) Store(imgtimeFile string) error {
|
||||
f, err := os.Create(imgtimeFile)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer f.Close()
|
||||
for i := 0; i < n; i++ {
|
||||
t, dt := it.Interp(i, cross)
|
||||
s := fmt.Sprintf("%d %f %f\n", i, t, dt)
|
||||
for _, a := range it.auxT {
|
||||
s := fmt.Sprintf("%.6f\t%d\n", a.Tutc, a.Row)
|
||||
f.WriteString(s)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user