Skip to content

Commit

Permalink
fix: generating attitude paths
Browse files Browse the repository at this point in the history
  • Loading branch information
tkurki committed Jan 20, 2025
1 parent cf08eb4 commit b60cd39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/influx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,9 @@ export class SKInflux {
point.tag('s2_cell_id', posToS2CellId(value))
} else if (pathValue.path === 'navigation.attitude') {
return ['pitch', 'roll', 'yaw'].reduce<Point[]>((acc, field) => {
const point = new Point(influxPath(pathValue.path)).tag('context', context).tag('source', source)
const point = new Point(influxPath(`navigation.attitude.${field}`)).tag('context', context).tag('source', source)
point.floatField('value', value[field])
acc.push()
acc.push(point)
return acc
}, [])
} else {
Expand Down

0 comments on commit b60cd39

Please sign in to comment.