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:
parent
6c0dc80978
commit
a40a0b0e31
@ -150,7 +150,6 @@ int32_t GPSInitialize(void)
|
|||||||
#else
|
#else
|
||||||
if (gpsPort && gpsEnabled) {
|
if (gpsPort && gpsEnabled) {
|
||||||
GPSPositionInitialize();
|
GPSPositionInitialize();
|
||||||
GPSVelocityInitialize();
|
|
||||||
#if !defined(PIOS_GPS_MINIMAL)
|
#if !defined(PIOS_GPS_MINIMAL)
|
||||||
GPSTimeInitialize();
|
GPSTimeInitialize();
|
||||||
GPSSatellitesInitialize();
|
GPSSatellitesInitialize();
|
||||||
|
@ -70,6 +70,7 @@ bool checksum_ubx_message (UBXPacket *ubx)
|
|||||||
|
|
||||||
void parse_ubx_nav_velned (UBXPayload payload)
|
void parse_ubx_nav_velned (UBXPayload payload)
|
||||||
{
|
{
|
||||||
|
#if defined(REVOLUTION)
|
||||||
GPSVelocityData GpsVelocity;
|
GPSVelocityData GpsVelocity;
|
||||||
GPSVelocityGet(&GpsVelocity);
|
GPSVelocityGet(&GpsVelocity);
|
||||||
|
|
||||||
@ -78,6 +79,7 @@ void parse_ubx_nav_velned (UBXPayload payload)
|
|||||||
GpsVelocity.Down = (float)payload.nav_velned.velD/100.0f;
|
GpsVelocity.Down = (float)payload.nav_velned.velD/100.0f;
|
||||||
|
|
||||||
GPSVelocitySet(&GpsVelocity);
|
GPSVelocitySet(&GpsVelocity);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void parse_ubx_message (UBXPacket *ubx)
|
void parse_ubx_message (UBXPacket *ubx)
|
||||||
|
@ -679,6 +679,11 @@ static void altitudeHoldDesired(ManualControlCommandData * cmd)
|
|||||||
AltitudeHoldDesiredSet(&altitudeHoldDesired);
|
AltitudeHoldDesiredSet(&altitudeHoldDesired);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
static void positionDesired(ManualControlCommandData * cmd)
|
||||||
|
{
|
||||||
|
AlarmsSet(SYSTEMALARMS_ALARM_MANUALCONTROL, SYSTEMALARMS_ALARM_ERROR);
|
||||||
|
}
|
||||||
|
|
||||||
static void altitudeHoldDesired(ManualControlCommandData * cmd)
|
static void altitudeHoldDesired(ManualControlCommandData * cmd)
|
||||||
{
|
{
|
||||||
AlarmsSet(SYSTEMALARMS_ALARM_MANUALCONTROL, SYSTEMALARMS_ALARM_ERROR);
|
AlarmsSet(SYSTEMALARMS_ALARM_MANUALCONTROL, SYSTEMALARMS_ALARM_ERROR);
|
||||||
|
@ -30,7 +30,7 @@ CLEAN_FLIGHT := YES
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# Set up targets
|
# Set up targets
|
||||||
FW_TARGETS := $(addprefix fw_, coptercontrol)
|
FW_TARGETS := $(addprefix fw_, coptercontrol) $(addprefix fw_, revolution)
|
||||||
FW_TARGETS_TOOLS := $(addprefix fw_, coptercontrol)
|
FW_TARGETS_TOOLS := $(addprefix fw_, coptercontrol)
|
||||||
BL_TARGETS := $(addprefix bl_, coptercontrol)
|
BL_TARGETS := $(addprefix bl_, coptercontrol)
|
||||||
BU_TARGETS := $(addprefix bu_, coptercontrol)
|
BU_TARGETS := $(addprefix bu_, coptercontrol)
|
||||||
|
Loading…
Reference in New Issue
Block a user