mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 11:06:04 +08:00
Merge commit '028aa918bc3ccd87afd967daf663a9c12d14258d' into beta
This commit is contained in:
@@ -320,7 +320,7 @@ do_set(const char* name, const char* val)
|
|||||||
char* end;
|
char* end;
|
||||||
f = strtod(val,&end);
|
f = strtod(val,&end);
|
||||||
param_set(param, &f);
|
param_set(param, &f);
|
||||||
printf(" -> new: %f\n", f);
|
printf(" -> new: %4.4f\n", (double)f);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -65,20 +65,20 @@ static int mixer_callback(uintptr_t handle,
|
|||||||
|
|
||||||
const unsigned output_max = 8;
|
const unsigned output_max = 8;
|
||||||
static float actuator_controls[output_max];
|
static float actuator_controls[output_max];
|
||||||
static bool should_arm = false;
|
|
||||||
uint16_t r_page_servo_disarmed[output_max];
|
|
||||||
uint16_t r_page_servo_control_min[output_max];
|
|
||||||
uint16_t r_page_servo_control_max[output_max];
|
|
||||||
uint16_t r_page_servos[output_max];
|
|
||||||
uint16_t servo_predicted[output_max];
|
|
||||||
|
|
||||||
/*
|
|
||||||
* PWM limit structure
|
|
||||||
*/
|
|
||||||
pwm_limit_t pwm_limit;
|
|
||||||
|
|
||||||
int test_mixer(int argc, char *argv[])
|
int test_mixer(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
* PWM limit structure
|
||||||
|
*/
|
||||||
|
pwm_limit_t pwm_limit;
|
||||||
|
static bool should_arm = false;
|
||||||
|
uint16_t r_page_servo_disarmed[output_max];
|
||||||
|
uint16_t r_page_servo_control_min[output_max];
|
||||||
|
uint16_t r_page_servo_control_max[output_max];
|
||||||
|
uint16_t r_page_servos[output_max];
|
||||||
|
uint16_t servo_predicted[output_max];
|
||||||
|
|
||||||
warnx("testing mixer");
|
warnx("testing mixer");
|
||||||
|
|
||||||
char *filename = "/etc/mixers/IO_pass.mix";
|
char *filename = "/etc/mixers/IO_pass.mix";
|
||||||
|
|||||||
Reference in New Issue
Block a user