Oui oui baguette!
If you want to contact me, adress me an email!
Control a Pelco Cmaera with Arduino and RS485
Home Page: https://hackaday.io/project/183986-controlling-a-cctv-camera-with-arduino
License: MIT License
Oui oui baguette!
If you want to contact me, adress me an email!
Pelco_And_Arduino/src/PelcoBus.cpp
Line 104 in 5c4c436
messFromCamera shold be instead raw_command; indeed, the command is properly sent, but wrong string is displayed in serial monitor:
Cam 1: Wrong checksum, updating to right checksum
Cam 1: sending message 00 00 00 00 00 00 00
My Arduino compiler complains about a missing return statement at the end of the function:
e:\documenti\Arduino\libraries\Pelco_And_Arduino\src\PelcoBus.cpp: In member function 'bool PelcoBus::command(uint8_t, bool, uint8_t, uint16_t, uint8_t)':
e:\documenti\Arduino\libraries\Pelco_And_Arduino\src\PelcoBus.cpp:264:1: error: control reaches end of non-void function [-Werror=return-type]
264 | }
| ^
cc1plus.exe: some warnings being treated as errors
Pelco_And_Arduino/src/PelcoBus.cpp
Line 264 in baf1b56
It's the closing bracket of "if (!disableACK) {"
Pelco_And_Arduino/src/PelcoBus.cpp
Line 104 in 5c4c436
Is disableAck working? I always get a "missing ack error", whatever value I specify, true or false.
Shouldn't this return "true" if disableAck is true?
Pelco_And_Arduino/src/PelcoCam.cpp
Line 49 in 5c4c436
Arduino compiler complains about possibly undefined value for "baud"; I think it depends on lack of "default" branch in switch/case above: after adding "default: baud = 2400;" the warning disappeared.
Pelco_And_Arduino/src/PelcoBus.cpp
Line 89 in baf1b56
I think messFromcamera should be ACKmessFromCamera
Noticed your Pelco-D command jpeg had call preset as "0x05" and clear preset as "0x07" but everywhere else I've seen the command list, 0x05 is clear preset and 0x07 is call preset.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.