Skip to content

Commit

Permalink
Add a section to example notebook for testing the scheduler. (#1191)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgee committed Aug 16, 2023
1 parent d774e1f commit f73c3ab
Showing 1 changed file with 38 additions and 2 deletions.
40 changes: 38 additions & 2 deletions notebooks/TestPOCS.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,49 @@
" cam.take_exposure(seconds=2, filename=f'/home/panoptes/images/{cam_name}-test-{now}.cr2', blocking=True)"
]
},
{
"cell_type": "markdown",
"id": "13816d0a",
"metadata": {},
"source": [
"# Scheduler testing commands\n",
"\n",
"To schedule an observation the `pocs.observatory` will look at all the potential targets in the fields file and try to determine the \"best\" observation. "
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "b9160eb9",
"id": "8eacb871",
"metadata": {},
"outputs": [],
"source": []
"source": [
"pocs.observatory.get_observation()"
]
},
{
"cell_type": "markdown",
"id": "d552c57f",
"metadata": {},
"source": [
"It's possible that there will not be any valid observations available.\n",
"\n",
"If a valid observation is found, it will be assigned to `pocs.observatory.current_observation` and also tells the mount about the target. You can then do things like:"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "508d4980",
"metadata": {},
"outputs": [],
"source": [
"# Make sure the mount is unparked\n",
"pocs.observatory.mount.unpark()\n",
"\n",
"# Move to the target.\n",
"pocs.observatory.mount.slew_to_target()"
]
}
],
"metadata": {
Expand Down

0 comments on commit f73c3ab

Please sign in to comment.