Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
servo_lidar.h File Reference

driver for the servo to move the lidar More...

#include "std.h"
+ Include dependency graph for servo_lidar.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ServoLidar
 

Macros

#define PWM2ANGLE(pwm)   (((pwm) + MAX_PPRZ) * 90 / MAX_PPRZ) - 90
 

Functions

void servoLidar_init (void)
 
void servoLidar_periodic (void)
 

Variables

struct ServoLidar servoLidar
 

Detailed Description

driver for the servo to move the lidar

Definition in file servo_lidar.h.


Data Structure Documentation

◆ ServoLidar

struct ServoLidar

Definition at line 36 of file servo_lidar.h.

Data Fields
float angle
uint8_t direction
bool enabled
uint32_t last_update
int32_t position
uint8_t speed

Macro Definition Documentation

◆ PWM2ANGLE

#define PWM2ANGLE (   pwm)    (((pwm) + MAX_PPRZ) * 90 / MAX_PPRZ) - 90

Definition at line 34 of file servo_lidar.h.

Function Documentation

◆ servoLidar_init()

◆ servoLidar_periodic()

void servoLidar_periodic ( void  )
extern

Definition at line 81 of file servo_lidar.c.

Variable Documentation

◆ servoLidar

struct ServoLidar servoLidar
extern

Definition at line 44 of file servo_lidar.c.

Referenced by servoLidar_init(), and sim_overwrite_lidar().