mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
Merge remote-tracking branch 'baseorigin/revo/corvuscorax/airspeed_fixes' into corvuscorax/airspeed_fixes
Conflicts: flight/RevoMini/UAVObjects.inc
This commit is contained in:
commit
ce595a06d9
@ -33,7 +33,7 @@
|
||||
#include "paths.h"
|
||||
|
||||
#include "flightstatus.h"
|
||||
#include "baroairspeed.h" // TODO: make baroairspeed optional
|
||||
#include "airspeedactual.h"
|
||||
#include "pathaction.h"
|
||||
#include "pathdesired.h"
|
||||
#include "pathstatus.h"
|
||||
@ -110,7 +110,7 @@ int32_t PathPlannerInitialize()
|
||||
PathStatusInitialize();
|
||||
PathDesiredInitialize();
|
||||
PositionActualInitialize();
|
||||
BaroAirspeedInitialize();
|
||||
AirspeedActualInitialize();
|
||||
VelocityActualInitialize();
|
||||
WaypointInitialize();
|
||||
WaypointActiveInitialize();
|
||||
@ -482,11 +482,9 @@ static uint8_t conditionAboveSpeed() {
|
||||
|
||||
// use airspeed if requested and available
|
||||
if (pathAction.ConditionParameters[1]>0.5f) {
|
||||
BaroAirspeedData baroAirspeed;
|
||||
BaroAirspeedGet (&baroAirspeed);
|
||||
if (baroAirspeed.BaroConnected == BAROAIRSPEED_BAROCONNECTED_TRUE) {
|
||||
velocity = baroAirspeed.TrueAirspeed;
|
||||
}
|
||||
AirspeedActualData airspeed;
|
||||
AirspeedActualGet (&airspeed);
|
||||
velocity = airspeed.CalibratedAirspeed;
|
||||
}
|
||||
|
||||
if ( velocity >= pathAction.ConditionParameters[0]) {
|
||||
|
@ -40,6 +40,8 @@ UAVOBJSRCFILENAMES += baroaltitude
|
||||
UAVOBJSRCFILENAMES += baroairspeed
|
||||
UAVOBJSRCFILENAMES += airspeedsettings
|
||||
UAVOBJSRCFILENAMES += airspeedactual
|
||||
UAVOBJSRCFILENAMES += fixedwingpathfollowersettings
|
||||
UAVOBJSRCFILENAMES += fixedwingpathfollowerstatus
|
||||
UAVOBJSRCFILENAMES += flightbatterysettings
|
||||
UAVOBJSRCFILENAMES += firmwareiapobj
|
||||
UAVOBJSRCFILENAMES += flightbatterystate
|
||||
|
Loading…
x
Reference in New Issue
Block a user