scanner_data.h
Go to the documentation of this file.
1 // Copyright (c) 2019-2020 Pilz GmbH & Co. KG
2 //
3 // This program is free software: you can redistribute it and/or modify
4 // it under the terms of the GNU Lesser General Public License as published by
5 // the Free Software Foundation, either version 3 of the License, or
6 // (at your option) any later version.
7 //
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public License
14 // along with this program. If not, see <https://www.gnu.org/licenses/>.
15 
16 #ifndef PSEN_SCAN_SCANNER_PARAMETER_H
17 #define PSEN_SCAN_SCANNER_PARAMETER_H
18 
19 #include <endian.h>
20 #include <cstdint>
21 
23 
24 namespace psen_scan
25 {
32 uint32_t const START_MONITORING_OPCODE = htole32(9);
33 
40 uint64_t const START_MONITORING_FIXED_SEQUENCE = 0x0000000100000001;
41 
48 uint32_t const STOP_MONITORING_OPCODE = htole32(18);
49 
50 uint32_t const MONITORING_FRAME_OPCODE = 0xC9;
51 uint16_t const MAX_NUMBER_OF_SAMPLES = 550;
52 unsigned short const PSEN_SCAN_PORT_WRITE = 3000;
53 unsigned short const PSEN_SCAN_PORT_READ = 2000;
56 uint16_t const NUMBER_OF_SAMPLES_FULL_SCAN_MASTER = 2750;
57 double const SCAN_TIME = 0.03;
58 } // namespace psen_scan
59 
60 #endif // PSEN_SCAN_SCANNER_PARAMETER_H
uint16_t const MAX_NUMBER_OF_SAMPLES
Definition: scanner_data.h:51
PSENscanInternalAngle const MAX_SCAN_ANGLE(2750)
uint32_t const START_MONITORING_OPCODE
Opcode for StartMonitoring Frame.
Definition: scanner_data.h:32
uint32_t const MONITORING_FRAME_OPCODE
Definition: scanner_data.h:50
uint64_t const START_MONITORING_FIXED_SEQUENCE
Fixed sequence for StartMonitoring Frame.
Definition: scanner_data.h:40
unsigned short const PSEN_SCAN_PORT_WRITE
Definition: scanner_data.h:52
uint32_t const STOP_MONITORING_OPCODE
Opcode for StopMonitoring Frame.
Definition: scanner_data.h:48
PSENscanInternalAngle const MIN_SCAN_ANGLE(0)
double const SCAN_TIME
Definition: scanner_data.h:57
unsigned short const PSEN_SCAN_PORT_READ
Definition: scanner_data.h:53
Class to model angles in PSENscan internal format (tenth of degrees)
uint16_t const NUMBER_OF_SAMPLES_FULL_SCAN_MASTER
Definition: scanner_data.h:56


psen_scan
Author(s):
autogenerated on Mon Feb 28 2022 23:16:20