|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Basic guidance for rover. More...
Go to the source code of this file.
Data Structures | |
| struct | RoverGuidanceSetpoint |
| struct | RoverGuidancePID |
| struct | RoverGuidanceControl |
| struct | RoverGuidance |
Functions | |
| void | rover_guidance_init (void) |
| void | rover_guidance_periodic (void) |
| void | rover_guidance_run (float *heading_sp) |
| void | rover_guidance_enter (void) |
| void | rover_guidance_set_speed_igain (uint32_t igain) |
| void | rover_guidance_set_turn_igain (uint32_t igain) |
Variables | |
| struct RoverGuidance | rover_guidance |
Basic guidance for rover.
Implement standard PID control loop to track a navigation target. Guidance "modes" are using the autopilot generation with the "guidance" state machine.
Definition in file rover_guidance.h.
| struct RoverGuidanceSetpoint |
Definition at line 36 of file rover_guidance.h.
| Data Fields | ||
|---|---|---|
| float | heading | heading setpoint |
| uint8_t | mask | bit 5: vx & vy, bit 6: vz, bit 7: vyaw |
| struct FloatVect2 | pos |
position setpoint in NED. position setpoint |
| struct FloatVect2 | speed | speed setpoint |
| struct RoverGuidancePID |
Definition at line 46 of file rover_guidance.h.
| Data Fields | ||
|---|---|---|
| float | d | |
| float | d_err | |
| float | err | |
| float | i | |
| float | p | |
| float | sum_err | |
| struct RoverGuidanceControl |
Definition at line 55 of file rover_guidance.h.
| Data Fields | ||
|---|---|---|
| float | motor_speed | |
| float | motor_turn | |
| struct RoverGuidance |
Definition at line 60 of file rover_guidance.h.
| Data Fields | ||
|---|---|---|
| struct RoverGuidanceControl | cmd | commands |
| struct RoverGuidanceSetpoint | sp | setpoints |
| struct RoverGuidancePID | speed_pid | motor speed controller |
| struct RoverGuidancePID | turn_pid | turn rate controller |
|
extern |
Definition at line 124 of file rover_guidance.c.
References FloatEulers::psi, rover_guidance, and stateGetNedToBodyEulers_f().
|
extern |
Definition at line 42 of file rover_guidance.c.
References FLOAT_VECT2_ZERO, and rover_guidance.
|
extern |
Definition at line 67 of file rover_guidance.c.
|
extern |
Definition at line 83 of file rover_guidance.c.
References compute_pid(), float_vect2_norm(), MAX_POS_ERR, MAX_PPRZ, MAX_SPEED_ERR, PROXIMITY_DIST, FloatEulers::psi, FloatRates::r, rover_guidance, stateGetBodyRates_f(), stateGetHorizontalSpeedNorm_f(), stateGetNedToBodyEulers_f(), stateGetPositionEnu_f(), TRIM_PPRZ, VECT2_DIFF, FloatVect2::x, and FloatVect2::y.
|
extern |
Definition at line 169 of file rover_guidance.c.
References rover_guidance.
|
extern |
Definition at line 175 of file rover_guidance.c.
References rover_guidance.
|
extern |
Definition at line 35 of file rover_guidance.c.
Referenced by rover_guidance_enter(), rover_guidance_init(), rover_guidance_run(), rover_guidance_set_speed_igain(), and rover_guidance_set_turn_igain().