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
44
45extern struct ServoLidar servoLidar;
46
47extern void servoLidar_init(void);
48extern void servoLidar_periodic(void);
49
50#endif
uint32_t last_update
Definition servo_lidar.h:42
uint8_t direction
Definition servo_lidar.h:41
struct ServoLidar servoLidar
Definition servo_lidar.c:44
void servoLidar_periodic(void)
Definition servo_lidar.c:81
float angle
Definition servo_lidar.h:40
uint8_t speed
Definition servo_lidar.h:38
int32_t position
Definition servo_lidar.h:39
void servoLidar_init(void)
Definition servo_lidar.c:46
int int32_t
Typedef defining 32 bit int type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.