Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
1e09139f
Commit
1e09139f
authored
7 years ago
by
Beat Küng
Browse files
Options
Downloads
Patches
Plain Diff
refactor mc_att_control: move private method declarations above private data members
parent
b04a3a96
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/modules/mc_att_control/mc_att_control.hpp
+36
-34
36 additions, 34 deletions
src/modules/mc_att_control/mc_att_control.hpp
with
36 additions
and
34 deletions
src/modules/mc_att_control/mc_att_control.hpp
+
36
−
34
View file @
1e09139f
...
...
@@ -88,6 +88,42 @@ public:
private:
/**
* initialize some vectors/matrices from parameters
*/
void
parameters_updated
();
/**
* Check for parameter update and handle it.
*/
void
battery_status_poll
();
void
parameter_update_poll
();
void
sensor_bias_poll
();
void
sensor_correction_poll
();
void
vehicle_attitude_poll
();
void
vehicle_attitude_setpoint_poll
();
void
vehicle_control_mode_poll
();
void
vehicle_manual_poll
();
void
vehicle_motor_limits_poll
();
void
vehicle_rates_setpoint_poll
();
void
vehicle_status_poll
();
/**
* Attitude controller.
*/
void
control_attitude
(
float
dt
);
/**
* Attitude rates controller.
*/
void
control_attitude_rates
(
float
dt
);
/**
* Throttle PID attenuation.
*/
math
::
Vector
<
3
>
pid_attenuations
(
float
tpa_breakpoint
,
float
tpa_rate
);
int
_v_att_sub
{
-
1
};
/**< vehicle attitude subscription */
int
_v_att_sp_sub
{
-
1
};
/**< vehicle attitude setpoint subscription */
int
_v_rates_sp_sub
{
-
1
};
/**< vehicle rates setpoint subscription */
...
...
@@ -211,39 +247,5 @@ private:
math
::
Vector
<
3
>
_auto_rate_max
;
/**< attitude rate limits in auto modes */
matrix
::
Vector3f
_acro_rate_max
;
/**< max attitude rates in acro mode */
/**
* Update our local parameter cache.
*/
void
parameters_updated
();
/**
* Check for parameter update and handle it.
*/
void
battery_status_poll
();
void
parameter_update_poll
();
void
sensor_bias_poll
();
void
sensor_correction_poll
();
void
vehicle_attitude_poll
();
void
vehicle_attitude_setpoint_poll
();
void
vehicle_control_mode_poll
();
void
vehicle_manual_poll
();
void
vehicle_motor_limits_poll
();
void
vehicle_rates_setpoint_poll
();
void
vehicle_status_poll
();
/**
* Attitude controller.
*/
void
control_attitude
(
float
dt
);
/**
* Attitude rates controller.
*/
void
control_attitude_rates
(
float
dt
);
/**
* Throttle PID attenuation.
*/
math
::
Vector
<
3
>
pid_attenuations
(
float
tpa_breakpoint
,
float
tpa_rate
);
};
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment