mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-04 13:15:08 +08:00
Flyable gains for CF2
This commit is contained in:
committed by
Lorenz Meier
parent
c842b0457f
commit
1fd3636ab3
@@ -18,6 +18,18 @@ then
|
|||||||
param set PWM_DISARMED 0
|
param set PWM_DISARMED 0
|
||||||
param set PWM_MIN 0
|
param set PWM_MIN 0
|
||||||
param set PWM_MAX 255
|
param set PWM_MAX 255
|
||||||
|
|
||||||
|
param set SYS_COMPANION 20
|
||||||
|
|
||||||
|
param set MC_PITCHRATE_D 0.0028
|
||||||
|
param set MC_PITCHRATE_P 0.075
|
||||||
|
param set MC_PITCH_P 4.0
|
||||||
|
param set MC_ROLLRATE_D 0.0028
|
||||||
|
param set MC_ROLLRATE_P 0.075
|
||||||
|
param set MC_ROLL_P 4.0
|
||||||
|
|
||||||
|
param set CBRK_SUPPLY_CHK 894281
|
||||||
|
param set CBRK_USB_CHK 197848
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set PWM_MIN none
|
set PWM_MIN none
|
||||||
|
|||||||
@@ -168,6 +168,12 @@ then
|
|||||||
if ver hwcmp CRAZYFLIE
|
if ver hwcmp CRAZYFLIE
|
||||||
then
|
then
|
||||||
set USE_IO no
|
set USE_IO no
|
||||||
|
|
||||||
|
if param compare SYS_AUTOSTART 0
|
||||||
|
then
|
||||||
|
param set SYS_AUTOSTART 4900
|
||||||
|
set AUTOCNF yes
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
set USE_IO no
|
set USE_IO no
|
||||||
|
|||||||
@@ -131,6 +131,10 @@ Syslink::set_address(uint64_t addr)
|
|||||||
int
|
int
|
||||||
Syslink::open_serial(const char *dev)
|
Syslink::open_serial(const char *dev)
|
||||||
{
|
{
|
||||||
|
#ifndef B1000000
|
||||||
|
#define B1000000 1000000
|
||||||
|
#endif
|
||||||
|
|
||||||
int rate = B1000000;
|
int rate = B1000000;
|
||||||
|
|
||||||
// open uart
|
// open uart
|
||||||
|
|||||||
Reference in New Issue
Block a user