mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
Fixed Log formatting
Fixed Alt Hold setting error. git-svn-id: https://arducopter.googlecode.com/svn/trunk@3276 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
51473501bc
commit
c86e53e922
@ -618,21 +618,18 @@ static void Log_Read_Control_Tuning()
|
|||||||
{
|
{
|
||||||
Serial.printf_P(PSTR( "CTUN, "
|
Serial.printf_P(PSTR( "CTUN, "
|
||||||
"%d, %d, "
|
"%d, %d, "
|
||||||
"%d, %d, %ld, "
|
"%d, %d, %d, "
|
||||||
"%d, %d, %ld, "
|
"%d, %d, %d, "
|
||||||
"%d, %d, %ld\n"),
|
"%d, %d, %d\n"),
|
||||||
|
|
||||||
// Control
|
// Control
|
||||||
DataFlash.ReadInt(),
|
DataFlash.ReadInt(),
|
||||||
DataFlash.ReadInt(),
|
DataFlash.ReadInt(),
|
||||||
|
|
||||||
// yaw
|
// yaw
|
||||||
(int)DataFlash.ReadByte(),
|
|
||||||
DataFlash.ReadInt(),
|
DataFlash.ReadInt(),
|
||||||
DataFlash.ReadInt(),
|
DataFlash.ReadInt(),
|
||||||
DataFlash.ReadInt(),
|
DataFlash.ReadInt(),
|
||||||
//(float)DataFlash.ReadInt(),// Gyro Rate
|
|
||||||
DataFlash.ReadLong(),
|
|
||||||
|
|
||||||
// Alt Hold
|
// Alt Hold
|
||||||
DataFlash.ReadInt(),
|
DataFlash.ReadInt(),
|
||||||
|
@ -234,7 +234,8 @@ static void init_home()
|
|||||||
|
|
||||||
// Save prev loc this makes the calcs look better before commands are loaded
|
// Save prev loc this makes the calcs look better before commands are loaded
|
||||||
prev_WP = home;
|
prev_WP = home;
|
||||||
next_WP = home;
|
// this is dangerous since we can get GPS lock at any time.
|
||||||
|
//next_WP = home;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -522,7 +522,7 @@
|
|||||||
//# define THROTTLE_D 0.6 // upped with filter
|
//# define THROTTLE_D 0.6 // upped with filter
|
||||||
//#endif
|
//#endif
|
||||||
#ifndef THROTTLE_IMAX
|
#ifndef THROTTLE_IMAX
|
||||||
# define THROTTLE_IMAX 50
|
# define THROTTLE_IMAX 150
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -394,6 +394,7 @@ static void set_mode(byte mode)
|
|||||||
throttle_mode = ALT_HOLD_THR;
|
throttle_mode = ALT_HOLD_THR;
|
||||||
|
|
||||||
init_throttle_cruise();
|
init_throttle_cruise();
|
||||||
|
next_WP.alt = current_loc.alt;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AUTO:
|
case AUTO:
|
||||||
@ -408,6 +409,7 @@ static void set_mode(byte mode)
|
|||||||
init_auto();
|
init_auto();
|
||||||
|
|
||||||
// do crosstrack correction
|
// do crosstrack correction
|
||||||
|
// XXX move to flight commands
|
||||||
xtrack_enabled = true;
|
xtrack_enabled = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user