1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

Small fix to be able to build CC for Revo branch and to include revo in

package.
This commit is contained in:
James Cotton 2012-05-07 01:54:04 -05:00
parent 6c0dc80978
commit a40a0b0e31
4 changed files with 8 additions and 2 deletions

View File

@ -150,7 +150,6 @@ int32_t GPSInitialize(void)
#else
if (gpsPort && gpsEnabled) {
GPSPositionInitialize();
GPSVelocityInitialize();
#if !defined(PIOS_GPS_MINIMAL)
GPSTimeInitialize();
GPSSatellitesInitialize();

View File

@ -70,6 +70,7 @@ bool checksum_ubx_message (UBXPacket *ubx)
void parse_ubx_nav_velned (UBXPayload payload)
{
#if defined(REVOLUTION)
GPSVelocityData GpsVelocity;
GPSVelocityGet(&GpsVelocity);
@ -78,6 +79,7 @@ void parse_ubx_nav_velned (UBXPayload payload)
GpsVelocity.Down = (float)payload.nav_velned.velD/100.0f;
GPSVelocitySet(&GpsVelocity);
#endif
}
void parse_ubx_message (UBXPacket *ubx)

View File

@ -679,6 +679,11 @@ static void altitudeHoldDesired(ManualControlCommandData * cmd)
AltitudeHoldDesiredSet(&altitudeHoldDesired);
}
#else
static void positionDesired(ManualControlCommandData * cmd)
{
AlarmsSet(SYSTEMALARMS_ALARM_MANUALCONTROL, SYSTEMALARMS_ALARM_ERROR);
}
static void altitudeHoldDesired(ManualControlCommandData * cmd)
{
AlarmsSet(SYSTEMALARMS_ALARM_MANUALCONTROL, SYSTEMALARMS_ALARM_ERROR);

View File

@ -30,7 +30,7 @@ CLEAN_FLIGHT := YES
endif
# Set up targets
FW_TARGETS := $(addprefix fw_, coptercontrol)
FW_TARGETS := $(addprefix fw_, coptercontrol) $(addprefix fw_, revolution)
FW_TARGETS_TOOLS := $(addprefix fw_, coptercontrol)
BL_TARGETS := $(addprefix bl_, coptercontrol)
BU_TARGETS := $(addprefix bu_, coptercontrol)