Fix RC range reversal

This commit is contained in:
Amilcar Lucas 2011-09-11 04:04:02 +02:00
parent dd19a7302d
commit 51a8ec0ba8
5 changed files with 40 additions and 3 deletions

35
ArduPlane/APM_Config.h~ Normal file
View File

@ -0,0 +1,35 @@
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
// This file is just a placeholder for your configuration file. If you wish to change any of the setup parameters from
// their default values, place the appropriate #define statements here.
// For example if you wanted the Port 3 baud rate to be 38400 you would add a statement like the one below (uncommented)
//#define SERIAL3_BAUD 38400
//#define GCS_PROTOCOL GCS_PROTOCOL_NONE
// You may also put an include statement here to point at another configuration file. This is convenient if you maintain
// different configuration files for different aircraft or HIL simulation. See the examples below
//#include "APM_Config_mavlink_hil.h"
//#include "Skywalker.h"
// The following are the recommended settings for Xplane simulation. Remove the leading "/* and trailing "*/" to enable:
/*
#define HIL_PROTOCOL HIL_PROTOCOL_MAVLINK
#define HIL_MODE HIL_MODE_ATTITUDE
#define HIL_PORT 0
#define GCS_PROTOCOL GCS_PROTOCOL_MAVLINK
#define GCS_PORT 3
*/
// ----- Camera definitions ------
// ------------------------------
#define CAMERA ENABLED
#define CAM_DEBUG DISABLED
// - Options to reduce code size -
// -------------------------------
// Disable text based terminal configuration
#define CLI_ENABLED DISABLED

View File

@ -1,6 +1,6 @@
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- /// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#define THISFIRMWARE "ArduPilotMega V2.23" #define THISFIRMWARE "ArduPilotMega V2.24"
/* /*
Authors: Doug Weibel, Jose Julio, Jordi Munoz, Jason Short Authors: Doug Weibel, Jose Julio, Jordi Munoz, Jason Short
Thanks to: Chris Anderson, HappyKillMore, Bill Premerlani, James Cohen, JB from rotorFX, Automatik, Fefenin, Peter Meister, Remzibi Thanks to: Chris Anderson, HappyKillMore, Bill Premerlani, James Cohen, JB from rotorFX, Automatik, Fefenin, Peter Meister, Remzibi
@ -581,7 +581,7 @@ static void medium_loop()
// For now point the camera manually via the RC inputs (later remove these two lines) // For now point the camera manually via the RC inputs (later remove these two lines)
// for simple dcm tests, replace k_manual with k_stabilise // for simple dcm tests, replace k_manual with k_stabilise
camera_mount.set_mode(AP_Mount::k_manual); camera_mount.set_mode(AP_Mount::k_stabilise);
camera_mount.update_mount(); camera_mount.update_mount();
g.camera.trigger_pic_cleanup(); g.camera.trigger_pic_cleanup();

View File

@ -17,7 +17,7 @@ public:
// The increment will prevent old parameters from being used incorrectly // The increment will prevent old parameters from being used incorrectly
// by newer code. // by newer code.
// //
static const uint16_t k_format_version = 11; static const uint16_t k_format_version = 12;
// The parameter software_type is set up solely for ground station use // The parameter software_type is set up solely for ground station use
// and identifies the software type (eg ArduPilotMega versus ArduCopterMega) // and identifies the software type (eg ArduPilotMega versus ArduCopterMega)

BIN
ArduPlane/serialsent.raw Normal file

Binary file not shown.

2
ArduPlane/upload1 Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
avrdude -c arduino -p m1280 -P /dev/ttyUSB1 -b57600 -U /tmp/ArduPlane.build/ArduPlane.hex