Hey 
First up im very grateful for all the support documentation , without which i wouldnt have gotten this far , with my build.
Im having a few issues (probably just my stupidity ) with the APM setup process .
I got my APM board and Oilpan(2.2) about a month ago .I finished assembly and ran the blinking LED program , and also the servo dance program (which seems fine to me.)
The APM Beta Code is currently loaded on my board , last evening i took it outside to test the  GPS LED behavior .

This is the behavior i got :


  1. Fast flashing - cablibrating gyros.
  2. BC go solid for 2-3 seconds - pause.
  3. A and BC flash alternating - rotation flashing.
  4. ABC flash slowly - waiting for GPS lock.
  5. B Solid ,C Flashing (for about 2 minutes)
  6. Then B and C solid.
Ive Included a picture showing my APM running on the Receiver battery .I hadnt done the radio setup before this .
I then connected the APM via usb and ran a gps test , the test confirmed that the home coordinates were accurate.
im wondering why didnt the A LED glow solid.

This morning i proceeded to the radio setup :

This is how the RX is connected to the APM

THRO == IN2
AILE  == IN0
ELEV == IN1
RUDD == IN3
AUX1 == IN7  (even tried AUX2)


This is my show output:

Radio:
CH1: 900 | 1520
CH2: 1200 | 2100
CH3: 900 | 1916
CH4: 1096 | 1902
CH5: 1000 | 2000
CH6: 1000 | 2000
CH7: 1000 | 2000
CH8: 1000 | 2000



when i tried setting up the mode, the 'pos' value did not change when i flipped the 3 way switch. (APM detected the inputs on my Aile channel in order to scroll through the available modes , but i couldnt change the switch position.

Help.




Tags: APM, gps, radio, setup

Views: 246

Attachments:

Reply to This

Replies to This Discussion

Does the APM board's mode LED change when you flip your 3-way switch? (the one on in7).
The MUX LED ? , No it does not flash its solid ON.
So you're not getting the behavior described in the manual here?

If so, there is either a soldering error, or you may have on the last of the Sparkfun APM boards with a bad fuse setting. Instructions for reflashing the PPM firmware are here.
i tried connecting IN7 to the GEAR channel which is controlled by a two way switch , now when i flip the GEAR switch the MUX LED goes OFF , flip it back and its ON . Im guessing its something to do with the 3 way switch and the channel its on.
In case i cant work the 3 way can APM be operated with just two flight modes?
Or is there some way to trigger modes via Xbee from GCS ?
After I updated to the latest software about a week ago I lost the green A light on OilPan at the last sequence.

I have two OILPANS and both behave the same.

Here's my APM Config


// REQUIRED: GPS_PROTOCOL
#define GPS_PROTOCOL GPS_PROTOCOL_UBLOX

// You must uncommment this line by removing the leading slashes and select either the default (GPS_PROTOCOL_MTK) or one of the following other supported GPS modules if you're using one of them instead

// Other allowed options include:
// GPS_PROTOCOL_NONE No GPS attached
// GPS_PROTOCOL_IMU X-Plane interface or ArduPilot IMU.
// GPS_PROTOCOL_MTK MediaTek-based GPS.
// GPS_PROTOCOL_UBLOX UBLOX GPS
// GPS_PROTOCOL_SIRF SiRF-based GPS in Binary mode. NOT TESTED

// ---------------------------------------------------------------
// Other settings (optional):
// ---------------------------------------------------------------

// Hardware in the loop output
//#define ENABLE_HIL DISABLED

// GCS_PROTOCOL
#define GCS_PROTOCOL GCS_PROTOCOL_LEGACY

// GCS_PORT
#define GCS_PORT 3

// AIRSPEED_SENSOR
#define AIRSPEED_SENSOR ENABLED

// Battery monitoring
// #define BATTERY_EVENT ENABLED
// #define BATTERY_TYPE 1
// #define LOW_VOLTAGE 14.8
// #define VOLT_DIV_RATIO 2.56

// INPUT_VOLTAGE
//#define INPUT_VOLTAGE 5.0

// AUTO_TRIM
//#define AUTO_TRIM ENABLED

// ENABLE_STICK_MIXING
//#define ENABLE_STICK_MIXING ENABLED

// THROTTLE_OUT
//#define THROTTLE_OUT ENABLED

// GROUND_START_DELAY
#define GROUND_START_DELAY 7

// ENABLE_AIR_START
//#define ENABLE_AIR_START DISABLED

// ALTITUDE_MIX OPTIONAL
//
// Configures the blend between GPS and pressure altitude.
// 0 = GPS altitude, 1 = Press alt, 0.5 = half and half, etc.
//
// The default is to use only GPS altitude.
//
#define ALTITUDE_MIX 0.5

// AIRSPEED_CRUISE
#define AIRSPEED_CRUISE 14

// Throttle control
//#define THROTTLE_MIN 10
//#define THROTTLE_CRUISE 45
//#define THROTTLE_MAX 75

// Autopilot control limits
//#define HEAD_MAX 45
//#define PITCH_MAX 15
//#define PITCH_MIN -25

// Attitude control gains
#define SERVO_ROLL_P 0.8
#define SERVO_PITCH_P 0.8
#define SERVO_YAW_P 0.8
#define RUDDER_MIX 1.0
#define PITCH_COMP 0.1

// Navigation control gains
#define NAV_ROLL_P 0.9
#define NAV_PITCH_ASP_P 0.65
#define NAV_PITCH_ALT_P 0.65

// Energy/Altitude control gains
//#define THROTTLE_TE_P 0.50
//#define P_TO_T 2.5

// Crosstrack compensation
//#define XTRACK_GAIN 0.01
//#define XTRACK_ENTRY_ANGLE 30

//#define DEBUG_SUBSYSTEM 0

// Dataflash logging control
//#define LOG_ATTITUDE_FAST DISABLED
//#define LOG_ATTITUDE_MED ENABLED
//#define LOG_GPS ENABLED
//#define LOG_PM ENABLED
//#define LOG_CTUN DISABLED
//#define LOG_NTUN DISABLED
//#define LOG_MODE ENABLED
//#define LOG_RAW DISABLED
//#define LOG_CMD ENABLED
Yes, that is normal. LED behavior is in the manual.
The way it's written in the manual seems to leave a lot to questions>

"Fast flashing while calibrating gyros, then pause, then rotation flashing (about 45 seconds total). After that, slow blink while waiting for GPS lock; solid on after lock has been achieved. Note: the B LED is yellow and not as bright as the others, so it may not look like it's on while the others are blinking. But it is."

Can you please verify the READY to FLY state LEDs?
Ready to fly is two solid LEDs (B&C). I've updated the manual to make this clearer, so please check that again.
Is it safe to power APM with a 11.1V, 2200mAh ,3 Cell , (35C) battery?
Only via an ESC. We only recommended 2S batteries (and switching the solder power jumper of course ) if you're powering directly from a batttery.
Hey,

I am getting the same problem except I do not get the C flashing and locking.

1. Fast flashing - cablibrating gyros.
2. BC go solid for 2-3 seconds - pause.
3. A and BC flash alternating - rotation flashing.
4. ABC flash slowly - waiting for GPS lock.
5. B Solid. No A and C.

Also, on the Mtk, the LED flashes blue for 30mins and doesn't lock.

I have tried all my 4 AMP boards (2 of which I just purchased) and 3 Mtk GPS and have the same problem. The 2 new AMP has updated firmware and does not have any servo twitching problem the first 2 boards have.

I updated the firmware of Mtk GPS successfully.

The GPS is connected to the Red board that say "GPS port".

The MUX LED turns on when I switch away from MANUAL.

In the code, I defined the MTK GPS
#define GPS_PROTOCOL GPS_PROTOCOL_MTK

I did not change any other part of the ArduPilotMega Beta 1.0 code that is uploaded yesterday.

I think I am missing something really simple, but I have been going through the manual for weeks and still cant solve this problem.

Really appreciate your help. Thanks

Joshua

RSS

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service