mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 17:23:34 +08:00
lib_lowprintf -> lowsyslog
This commit is contained in:
@@ -144,7 +144,7 @@ mixer_tick(void)
|
|||||||
rc_channel_data[THROTTLE] = 1000;
|
rc_channel_data[THROTTLE] = 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
// lib_lowprintf("Tmin: %d Ttrim: %d Tmax: %d T: %d \n",
|
// lowsyslog("Tmin: %d Ttrim: %d Tmax: %d T: %d \n",
|
||||||
// (int)(system_state.rc_min[THROTTLE]), (int)(system_state.rc_trim[THROTTLE]),
|
// (int)(system_state.rc_min[THROTTLE]), (int)(system_state.rc_trim[THROTTLE]),
|
||||||
// (int)(system_state.rc_max[THROTTLE]), (int)(rc_channel_data[THROTTLE]));
|
// (int)(system_state.rc_max[THROTTLE]), (int)(rc_channel_data[THROTTLE]));
|
||||||
|
|
||||||
@@ -156,7 +156,7 @@ mixer_tick(void)
|
|||||||
// XXX builtin failsafe would activate here
|
// XXX builtin failsafe would activate here
|
||||||
control_count = 0;
|
control_count = 0;
|
||||||
}
|
}
|
||||||
//lib_lowprintf("R: %d P: %d Y: %d T: %d \n", control_values[0], control_values[1], control_values[2], control_values[3]);
|
//lowsyslog("R: %d P: %d Y: %d T: %d \n", control_values[0], control_values[1], control_values[2], control_values[3]);
|
||||||
|
|
||||||
/* this is for multicopters, etc. where manual override does not make sense */
|
/* this is for multicopters, etc. where manual override does not make sense */
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
#define debug(fmt, args...) do { } while(0)
|
#define debug(fmt, args...) do { } while(0)
|
||||||
//#define debug(fmt, args...) do { printf("[mixer] " fmt "\n", ##args); } while(0)
|
//#define debug(fmt, args...) do { printf("[mixer] " fmt "\n", ##args); } while(0)
|
||||||
//#include <debug.h>
|
//#include <debug.h>
|
||||||
//#define debug(fmt, args...) lib_lowprintf(fmt "\n", ##args)
|
//#define debug(fmt, args...) lowsyslog(fmt "\n", ##args)
|
||||||
|
|
||||||
MixerGroup::MixerGroup(ControlCallback control_cb, uintptr_t cb_handle) :
|
MixerGroup::MixerGroup(ControlCallback control_cb, uintptr_t cb_handle) :
|
||||||
Mixer(control_cb, cb_handle),
|
Mixer(control_cb, cb_handle),
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
#define debug(fmt, args...) do { } while(0)
|
#define debug(fmt, args...) do { } while(0)
|
||||||
//#define debug(fmt, args...) do { printf("[mixer] " fmt "\n", ##args); } while(0)
|
//#define debug(fmt, args...) do { printf("[mixer] " fmt "\n", ##args); } while(0)
|
||||||
//#include <debug.h>
|
//#include <debug.h>
|
||||||
//#define debug(fmt, args...) lib_lowprintf(fmt "\n", ##args)
|
//#define debug(fmt, args...) lowsyslog(fmt "\n", ##args)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Clockwise: 1
|
* Clockwise: 1
|
||||||
@@ -217,11 +217,11 @@ unsigned
|
|||||||
MultirotorMixer::mix(float *outputs, unsigned space)
|
MultirotorMixer::mix(float *outputs, unsigned space)
|
||||||
{
|
{
|
||||||
float roll = get_control(0, 0) * _roll_scale;
|
float roll = get_control(0, 0) * _roll_scale;
|
||||||
//lib_lowprintf("roll: %d, get_control0: %d, %d\n", (int)(roll), (int)(get_control(0, 0)), (int)(_roll_scale));
|
//lowsyslog("roll: %d, get_control0: %d, %d\n", (int)(roll), (int)(get_control(0, 0)), (int)(_roll_scale));
|
||||||
float pitch = get_control(0, 1) * _pitch_scale;
|
float pitch = get_control(0, 1) * _pitch_scale;
|
||||||
float yaw = get_control(0, 2) * _yaw_scale;
|
float yaw = get_control(0, 2) * _yaw_scale;
|
||||||
float thrust = get_control(0, 3);
|
float thrust = get_control(0, 3);
|
||||||
//lib_lowprintf("thrust: %d, get_control3: %d\n", (int)(thrust), (int)(get_control(0, 3)));
|
//lowsyslog("thrust: %d, get_control3: %d\n", (int)(thrust), (int)(get_control(0, 3)));
|
||||||
float max = 0.0f;
|
float max = 0.0f;
|
||||||
float fixup_scale;
|
float fixup_scale;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user