mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 22:48:29 -04:00
480e07a932
This commit changes the way libraries headers are included in source files: - If the header is in the same directory the source belongs to, so the notation '#include ""' is used with the path relative to the directory containing the source. - If the header is outside the directory containing the source, then we use the notation '#include <>' with the path relative to libraries folder. Some of the advantages of such approach: - Only one search path for libraries headers. - OSs like Windows may have a better lookup time.
38 lines
938 B
C++
38 lines
938 B
C++
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
|
#ifndef AP_RCMAPPER_H
|
|
#define AP_RCMAPPER_H
|
|
|
|
#include <inttypes.h>
|
|
#include <AP_Common/AP_Common.h>
|
|
#include <AP_Param/AP_Param.h>
|
|
|
|
class RCMapper
|
|
{
|
|
public:
|
|
/// Constructor
|
|
///
|
|
RCMapper();
|
|
|
|
/// roll - return input channel number for roll / aileron input
|
|
uint8_t roll() const { return _ch_roll; }
|
|
|
|
/// pitch - return input channel number for pitch / elevator input
|
|
uint8_t pitch() const { return _ch_pitch; }
|
|
|
|
/// throttle - return input channel number for throttle input
|
|
uint8_t throttle() const { return _ch_throttle; }
|
|
|
|
/// yaw - return input channel number for yaw / rudder input
|
|
uint8_t yaw() const { return _ch_yaw; }
|
|
|
|
static const struct AP_Param::GroupInfo var_info[];
|
|
|
|
private:
|
|
// channel mappings
|
|
AP_Int8 _ch_roll;
|
|
AP_Int8 _ch_pitch;
|
|
AP_Int8 _ch_yaw;
|
|
AP_Int8 _ch_throttle;
|
|
};
|
|
#endif
|