28 #ifndef ROVER_GUIDANCE_H
29 #define ROVER_GUIDANCE_H
33 #include "generated/airframe.h"
77 #ifdef GUIDANCE_MODE_GUIDED
80 extern void rover_guidance_guided_run(
bool in_flight);
87 extern bool rover_guidance_set_guided_pos(
float x,
float y);
93 extern bool rover_guidance_set_guided_heading(
float heading);
100 extern bool rover_guidance_set_guided_body_vel(
float vx,
float vy);
107 extern bool rover_guidance_set_guided_vel(
float vx,
float vy);
113 extern bool rover_guidance_set_guided_heading_rate(
float rate);
Paparazzi floating point algebra.
void rover_guidance_run(float *heading_sp)
void rover_guidance_set_speed_igain(uint32_t igain)
uint8_t mask
bit 5: vx & vy, bit 6: vz, bit 7: vyaw
void rover_guidance_set_turn_igain(uint32_t igain)
struct RoverGuidanceSetpoint sp
setpoints
void rover_guidance_enter(void)
struct RoverGuidancePID turn_pid
turn rate controller
float heading
heading setpoint
struct FloatVect2 speed
speed setpoint
void rover_guidance_periodic(void)
void rover_guidance_init(void)
struct RoverGuidance rover_guidance
struct RoverGuidancePID speed_pid
motor speed controller
struct FloatVect2 pos
position setpoint in NED.
struct RoverGuidanceControl cmd
commands
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.