Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mono #14

Merged
merged 31 commits into from
Apr 19, 2021
Merged

Mono #14

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
debug
  • Loading branch information
luke-iqt committed Mar 22, 2021
commit fce05397b3f48644595703a83a2baa465b84b558
22 changes: 11 additions & 11 deletions Config.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,24 +63,24 @@
},
{
"cell_type": "code",
"execution_count": 57,
"execution_count": 63,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<paho.mqtt.client.MQTTMessageInfo at 0x7f8d01052720>"
"<paho.mqtt.client.MQTTMessageInfo at 0x7f8d01047810>"
]
},
"execution_count": 57,
"execution_count": 63,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"client.connect(broker)\n",
"data = {}\n",
"data['cameraZoom'] = 9999 # Update this Value\n",
"data['cameraZoom'] = 5000 # Update this Value\n",
"json_data = json.dumps(data)\n",
"client.publish(\"skyscan/config/json\",json_data)"
]
Expand Down Expand Up @@ -198,24 +198,24 @@
},
{
"cell_type": "code",
"execution_count": 60,
"execution_count": 64,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<paho.mqtt.client.MQTTMessageInfo at 0x7f8d01052310>"
"<paho.mqtt.client.MQTTMessageInfo at 0x7f8d0104a540>"
]
},
"execution_count": 60,
"execution_count": 64,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"client.connect(broker)\n",
"data = {}\n",
"data['cameraBearing'] = 0 # Update this Value\n",
"data['cameraBearing'] = -2 # Update this Value\n",
"json_data = json.dumps(data)\n",
"client.publish(\"skyscan/config/json\",json_data)"
]
Expand All @@ -230,16 +230,16 @@
},
{
"cell_type": "code",
"execution_count": 59,
"execution_count": 62,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<paho.mqtt.client.MQTTMessageInfo at 0x7f8d0104af90>"
"<paho.mqtt.client.MQTTMessageInfo at 0x7f8d01052ef0>"
]
},
"execution_count": 59,
"execution_count": 62,
"metadata": {},
"output_type": "execute_result"
}
Expand Down
2 changes: 1 addition & 1 deletion axis-ptz/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def setPan(bearing):


if pan != bearing: #abs(pan - diff_heading) > 2: #only update the pan if there has been a big change
#logging.info("Heading Diff %d for Bearing %d & Camera Bearing: %d"% (diff_heading, bearing, camera_bearing))
logging.info("Heading Diff %d for Bearing %d & Camera Bearing: %d"% (diff_heading, bearing, camera_bearing))

pan = bearing #diff_heading
#logging.info("Setting Pan to: %d"%pan)
Expand Down