Skip to content

Commit

Permalink
Change "camera_note" to "cam_note" in camera command payload
Browse files Browse the repository at this point in the history
  • Loading branch information
timbeccue committed Oct 8, 2024
1 parent 8dccb4e commit 994f616
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions src/components/InstrumentControls/Camera.vue
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,10 @@

<b-field
horizontal
label="Note"
label="Cam Note"
>
<b-input
v-model="camera_note"
v-model="cam_note"
placeholder="a camera note for the FITS header..."
type="text"
min="0"
Expand Down Expand Up @@ -432,9 +432,9 @@ export default {
get () { return this.$store.getters['command_params/camera_areas_selection'] },
set (val) { this.$store.commit('command_params/camera_areas_selection', val) }
},
camera_note: {
get () { return this.$store.getters['command_params/camera_note'] },
set (val) { this.$store.commit('command_params/camera_note', val) }
cam_note: {
get () { return this.$store.getters['command_params/cam_note'] },
set (val) { this.$store.commit('command_params/cam_note', val) }
},
object_name: {
Expand Down
6 changes: 3 additions & 3 deletions src/components/sitepages/SiteObserve.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ export default {
get () { return this.$store.getters['command_params/camera_areas_selection'] },
set (val) { this.$store.commit('command_params/camera_areas_selection', val) }
},
camera_note: {
get () { return this.$store.getters['command_params/camera_note'] },
set (val) { this.$store.commit('command_params/camera_note', val) }
cam_note: {
get () { return this.$store.getters['command_params/cam_note'] },
set (val) { this.$store.commit('command_params/cam_note', val) }
},
camera_exposure: {
get () { return this.$store.getters['command_params/camera_exposure'] },
Expand Down
6 changes: 3 additions & 3 deletions src/mixins/commands_mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export const commands_mixin = {
'subframeDefinedWithFile',

'camera_areas_selection',
'camera_note',
'cam_note',
'object_name',
'camera_exposure',
'camera_count',
Expand Down Expand Up @@ -451,8 +451,8 @@ export const commands_mixin = {
username: this.username // from auth0
}
// Avoid empty strings (thanks, dynamodb)
if (this.camera_note != '') {
opt_params.hint = this.camera_note
if (this.cam_note != '') {
opt_params.hint = this.cam_note
}
// if (this.object_name != '') {
// opt_params["hint"] = this.object_name
Expand Down
6 changes: 3 additions & 3 deletions src/store/modules/command_params.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const state = {
subframeDefinedWithFile: '',

camera_areas_selection: 'Full',
camera_note: '',
cam_note: '',
object_name: '',
camera_exposure: '1',
camera_count: 1, // numberinput form requires number, not string. converted to string in expose command.
Expand Down Expand Up @@ -69,7 +69,7 @@ const getters = {
subframeIsActive: state => state.subframeIsActive,
subframeDefinedWithFile: state => state.subframeDefinedWithFile,
camera_areas_selection: state => state.camera_areas_selection,
camera_note: state => state.camera_note,
cam_note: state => state.cam_note,
object_name: state => state.object_name,
camera_exposure: state => state.camera_exposure,
camera_count: state => state.camera_count,
Expand Down Expand Up @@ -132,7 +132,7 @@ const mutations = {
subframeIsActive (state, val) { state.subframeIsActive = val },
subframeDefinedWithFile (state, val) { state.subframeDefinedWithFile = val },
camera_areas_selection (state, val) { state.camera_areas_selection = val },
camera_note (state, val) { state.camera_note = val },
cam_note (state, val) { state.cam_note = val },
object_name (state, val) { state.object_name = val },
camera_exposure (state, val) { state.camera_exposure = val },
camera_count (state, val) { state.camera_count = val },
Expand Down

0 comments on commit 994f616

Please sign in to comment.