CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/ArduCopter/UserParameters.h
Views: 1798
1
#pragma once
2
3
#include <AP_Param/AP_Param.h>
4
5
class UserParameters {
6
7
public:
8
UserParameters();
9
static const struct AP_Param::GroupInfo var_info[];
10
11
// Put accessors to your parameter variables here
12
// UserCode usage example: g2.user_parameters.get_int8Param()
13
AP_Int8 get_int8Param() const { return _int8; }
14
AP_Int16 get_int16Param() const { return _int16; }
15
AP_Float get_floatParam() const { return _float; }
16
17
private:
18
// Put your parameter variable definitions here
19
AP_Int8 _int8;
20
AP_Int16 _int16;
21
AP_Float _float;
22
};
23
24