diff --git a/src/components/PlotSetup.vue b/src/components/PlotSetup.vue index 8bd97a6..e6e35cc 100644 --- a/src/components/PlotSetup.vue +++ b/src/components/PlotSetup.vue @@ -82,7 +82,9 @@ export default { additionalCompletionItems () { const additionalCompletionItems = [ 'mag_heading_df(MAG[0],ATT)', - 'mag_heading(RAW_IMU,ATTITUDE)' + 'mag_heading(RAW_IMU,ATTITUDE)', + 'max(x,y)', + 'min(x,y)' ] for (const name of this.state.namedFloats) { additionalCompletionItems.push(`named(NAMED_VALUE_FLOAT,"${name}")`) diff --git a/src/mavextra/mymavextra.js b/src/mavextra/mymavextra.js index 9c1e67b..fe49af4 100644 --- a/src/mavextra/mymavextra.js +++ b/src/mavextra/mymavextra.js @@ -19,3 +19,6 @@ window.angle_diff = (angle1, angle2) => { } return ret } + +window.min = Math.min +window.max = Math.max