Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
servo_lidar.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2025 Alejandro Rochas <alrochas@ucm.es>
3
*
4
* This file is part of paparazzi.
5
*
6
* paparazzi is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2, or (at your option)
9
* any later version.
10
*
11
* paparazzi is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with paparazzi; see the file COPYING. If not, write to
18
* the Free Software Foundation, 59 Temple Place - Suite 330,
19
* Boston, MA 02111-1307, USA.
20
*
21
*/
22
29
#ifndef SERVO_LIDAR_H
30
#define SERVO_LIDAR_H
31
32
#include "
std.h
"
33
34
#define PWM2ANGLE(pwm) (((pwm) + MAX_PPRZ) * 90 / MAX_PPRZ) - 90
35
36
struct
ServoLidar
{
37
bool
enabled
;
38
uint8_t
speed
;
39
int32_t
position
;
40
float
angle
;
41
uint8_t
direction
;
42
uint32_t
last_update
;
43
};
44
45
extern
struct
ServoLidar
servoLidar
;
46
47
extern
void
servoLidar_init
(
void
);
48
extern
void
servoLidar_periodic
(
void
);
49
50
#endif
ServoLidar::last_update
uint32_t last_update
Definition
servo_lidar.h:42
ServoLidar::direction
uint8_t direction
Definition
servo_lidar.h:41
servoLidar
struct ServoLidar servoLidar
Definition
servo_lidar.c:44
servoLidar_periodic
void servoLidar_periodic(void)
Definition
servo_lidar.c:81
ServoLidar::angle
float angle
Definition
servo_lidar.h:40
ServoLidar::enabled
bool enabled
Definition
servo_lidar.h:37
ServoLidar::speed
uint8_t speed
Definition
servo_lidar.h:38
ServoLidar::position
int32_t position
Definition
servo_lidar.h:39
servoLidar_init
void servoLidar_init(void)
Definition
servo_lidar.c:46
ServoLidar
Definition
servo_lidar.h:36
std.h
int32_t
int int32_t
Typedef defining 32 bit int type.
Definition
vl53l1_types.h:83
uint32_t
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
Definition
vl53l1_types.h:78
uint8_t
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition
vl53l1_types.h:98
sw
airborne
modules
lidar
slam
servo_lidar.h
Generated on Thu Sep 4 2025 16:19:42 for Paparazzi UAS by
1.9.8