Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
cam_segment.c
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2011 Gautier Hattenberger
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
*/
28
#include "
modules/cam_control/cam_segment.h
"
29
#include "
modules/cam_control/cam.h
"
30
#include "
firmwares/fixedwing/nav.h
"
31
32
void
cam_segment_init
(
void
)
33
{
34
}
35
36
void
cam_segment_stop
(
void
)
37
{
38
cam_mode
=
CAM_MODE_OFF
;
39
}
40
41
void
cam_segment_periodic
(
void
)
42
{
43
cam_mode
=
CAM_MODE_XY_TARGET
;
44
cam_target_x
=
desired_x
;
45
cam_target_y
=
desired_y
;
46
cam_target_alt
=
ground_alt
;
47
}
48
cam_segment.h
cam_target_y
float cam_target_y
Definition:
cam.c:83
cam_target_alt
float cam_target_alt
Definition:
cam.c:83
cam_segment_init
void cam_segment_init(void)
Definition:
cam_segment.c:32
desired_x
float desired_x
Definition:
nav.c:306
desired_y
float desired_y
Definition:
nav.c:306
cam_mode
uint8_t cam_mode
Definition:
cam.c:90
CAM_MODE_OFF
#define CAM_MODE_OFF
Definition:
cam.h:33
nav.h
ground_alt
float ground_alt
size == nb_waypoint, waypoint 0 is a dummy waypoint
Definition:
common_nav.c:40
cam.h
Pan/Tilt camera API.
cam_target_x
float cam_target_x
Radians, for CAM_MODE_ANGLES mode.
Definition:
cam.c:83
cam_segment_periodic
void cam_segment_periodic(void)
Definition:
cam_segment.c:41
cam_segment_stop
void cam_segment_stop(void)
Definition:
cam_segment.c:36
CAM_MODE_XY_TARGET
#define CAM_MODE_XY_TARGET
Definition:
cam.h:36
sw
airborne
modules
cam_control
cam_segment.c
Generated on Tue Feb 1 2022 13:51:14 for Paparazzi UAS by
1.8.17