Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
copilot.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016 2017 Michal Podhradsky <http://github.com/podhrmic>
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 */
44#ifndef COPILOT_H
45#define COPILOT_H
46
50
54
55
63
72
80
81extern bool send_cam_snapshot;
82extern bool send_cam_payload;
83extern bool send_copilot_status;
84
86void copilot_init(void);
87
89void copilot_periodic(void);
90
97
98#endif /* COPILOT_H */
99
float lens_temp
Definition copilot.h:69
uint8_t door_status
Definition copilot.h:60
uint16_t snapshot_num
Definition copilot.h:67
void copilot_init(void)
Init function.
pprz_mutex_t copilot_cam_snapshot_mtx
void copilot_parse_cam_snapshot_dl(uint8_t *buf)
Message processing functions.
pprz_mutex_t copilot_status_mtx
uint8_t used_disk
Definition copilot.h:76
bool send_cam_payload
pprz_mutex_t copilot_cam_payload_mtx
void copilot_parse_cam_payload_dl(uint8_t *buf)
copy CAMERA_PAYLOAD message and mark it to be sent
bool send_cam_snapshot
uint8_t used_disk
Definition copilot.h:59
uint8_t snapshot_valid
Definition copilot.h:68
void copilot_parse_payload_command_dl(uint8_t *buf)
Pass through PAYLOAD_COMMAND message and send it as PAYLOAD msg over telemetry.
void copilot_parse_copilot_status_dl(uint8_t *buf)
copy COPILOT_STATUS message and mark it to be sent
uint8_t cam_state
Definition copilot.h:66
float array_temp
Definition copilot.h:70
uint8_t used_mem
Definition copilot.h:75
uint8_t error_code
Definition copilot.h:78
uint8_t used_mem
Definition copilot.h:58
uint8_t error_code
Definition copilot.h:61
uint8_t status
Definition copilot.h:77
void copilot_parse_move_wp_dl(uint8_t *buf)
If MOVE_WP from GCS.
float timestamp
Definition copilot.h:57
bool send_copilot_status
uint16_t cam_id
Definition copilot.h:65
float timestamp
Definition copilot.h:74
void copilot_periodic(void)
Periodic function.
Extra datalink and telemetry using PPRZ protocol.
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.