Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
encoder_amt22.c
Go to the documentation of this file.
1/*
2 * Copyright (C) 2025 Flo&Fab <name.surname@enac.fr>
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, see
18 * <http://www.gnu.org/licenses/>.
19 */
20
27#include "peripherals/amt22.h"
29
32 .p = &AMT22_SPI_DEV,
33 .slave_idx = AMT22_SPI_SLAVE_IDX,
34 .type = AMT22_12_SINGLE,
35};
36
38{
40}
41
void amt22_periodic(amt22_t *amt)
Definition amt22.c:52
void amt22_init(amt22_t *amt, amt22_config_t *conf)
Definition amt22.c:12
int16_t amt22_get_turns(amt22_t *amt)
Definition amt22.c:118
uint16_t amt22_get_position(amt22_t *amt)
Definition amt22.c:111
struct spi_periph * p
Definition amt22.h:14
@ AMT22_12_SINGLE
12-bits, single-turn
Definition amt22.h:7
void encoder_amt22_periodic(void)
static amt22_t amt22
void encoder_amt22_init(void)
static amt22_config_t amt22_conf
uint16_t foo
Definition main_demo5.c:58
uint16_t f
Camera baseline, in meters (i.e. horizontal distance between the two cameras of the stereo setup)
Definition wedgebug.c:204