Skip to content

Commit 56be562

Browse files
author
jenkins.onyxia
committed
GroundSdk release 7.4.0
1 parent 8885161 commit 56be562

19 files changed

Lines changed: 344 additions & 250 deletions

SdkCore.framework/Headers/Arsdk.h

Lines changed: 38 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,52 @@
11
#ifndef Arsdk_h
22
#define Arsdk_h
33

4-
#include "ArsdkBackendType.h"
5-
#include "ArsdkApiCapabilities.h"
6-
#include "ArsdkCore.h"
7-
#include "ArsdkCore+Devices.h"
8-
#include "ArsdkCore+Stream.h"
9-
#include "ArsdkCore+Source.h"
10-
#include "ArsdkCore+Frame.h"
11-
#include "ArsdkCore+Media.h"
12-
#include "ArsdkCore+Update.h"
13-
#include "ArsdkCore+FtpRequest.h"
14-
#include "ArsdkCore+Crashml.h"
15-
#include "ArsdkCore+FlightLog.h"
16-
#include "ArsdkCore+RcBlackBox.h"
17-
#include "ArsdkCommand.h"
18-
#include "ArsdkFeatures.h"
4+
#import "ArsdkBackendType.h"
5+
#import "ArsdkApiCapabilities.h"
6+
#import "ArsdkCore.h"
7+
#import "ArsdkCore+Devices.h"
8+
#import "ArsdkCore+Stream.h"
9+
#import "ArsdkCore+Source.h"
10+
#import "ArsdkCore+Frame.h"
11+
#import "ArsdkCore+Media.h"
12+
#import "ArsdkCore+Update.h"
13+
#import "ArsdkCore+FtpRequest.h"
14+
#import "ArsdkCore+Crashml.h"
15+
#import "ArsdkCore+FlightLog.h"
16+
#import "ArsdkCore+RcBlackBox.h"
17+
#import "ArsdkCommand.h"
18+
#import "ArsdkFeatures.h"
1919

2020
#import "ArsdkFirmwareInfo.h"
2121

22-
#include "ArsdkBackendController.h"
23-
#include "ArsdkWifiBackendController.h"
24-
#include "ArsdkMuxEaBackendController.h"
22+
#import "ArsdkBackendController.h"
23+
#import "ArsdkWifiBackendController.h"
24+
#import "ArsdkMuxEaBackendController.h"
2525

26-
#include "PompLoopUtil.h"
27-
#include "Logger.h"
28-
#include "LogBinRecorderConfig.h"
29-
#include "LogTxtRecorderConfig.h"
26+
#import "PompLoopUtil.h"
27+
#import "Logger.h"
28+
#import "LogBinRecorderConfig.h"
29+
#import "LogTxtRecorderConfig.h"
3030

31-
#include "NSData+zlib.h"
32-
#include "NSData+Crypto.h"
31+
#import "NSData+zlib.h"
32+
#import "NSData+Crypto.h"
3333

34-
#include "FileConverterAPI.h"
35-
#include "NoAckStorage.h"
36-
#include "Anonymizer.h"
34+
#import "FileConverterAPI.h"
35+
#import "NoAckStorage.h"
36+
#import "Anonymizer.h"
3737

38-
#include "SdkCore+EventLogger.h"
39-
#include "SdkCoreFileSource.h"
40-
#include "SdkCoreMediaInfo.h"
41-
#include "SdkCoreRenderer.h"
38+
#import "SdkCore+EventLogger.h"
39+
#import "SdkCoreFileSource.h"
40+
#import "SdkCoreMediaInfo.h"
41+
#import "SdkCoreRenderer.h"
42+
#import "SdkCoreLic.h"
4243

43-
#include "GLError.h"
44+
#import "GLError.h"
4445

45-
#include "ThermalProc.h"
46-
#include "ThermalProcVideo.h"
47-
#include "ThermalProcPicture.h"
48-
#include "ThermalProcPictureData.h"
49-
#include "ThermalProcPaletteFactory.h"
46+
#import "ThermalProc.h"
47+
#import "ThermalProcVideo.h"
48+
#import "ThermalProcPicture.h"
49+
#import "ThermalProcPictureData.h"
50+
#import "ThermalProcPaletteFactory.h"
5051

5152
#endif /* Arsdk_h */

SdkCore.framework/Headers/ArsdkBackendController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
@interface ArsdkBackendController : NSObject
4040

4141
/** Arsdk controller instance */
42-
@property (nonatomic, strong, readonly, nonnull) ArsdkCore *arsdkCore;
42+
@property (nonatomic, strong, readonly, nullable) ArsdkCore *arsdkCore;
4343

4444
/**
4545
Start the backend controller

SdkCore.framework/Headers/ArsdkCore.h

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -76,30 +76,14 @@ struct arsdk_cmd;
7676

7777
@end
7878

79-
/** Command logging level */
80-
typedef NS_ENUM(NSInteger, ArsdkCmdLog) {
81-
/** Don't log any commands */
82-
ArsdkCmdLogNone = 0,
83-
/**
84-
Only log acknowledged commands which are not the frequent ones (like mass storage info or number of satellites)
85-
*/
86-
ArsdkCmdLogAcknowledgedOnlyWithoutFrequent = 1,
87-
/** Only log acknowledged commands */
88-
ArsdkCmdLogAcknowledgedOnly = 2,
89-
/** Log all commands */
90-
ArsdkCmdLogAll = 3,
91-
};
92-
93-
extern ArsdkCmdLog arsdkCoreCmdLogLevel;
94-
9579
/**
9680
Arsdk Controller
9781
Wrapper around arsdk-ng.
9882
*/
9983
@interface ArsdkCore : NSObject
10084

10185
/** Native arsdk manager */
102-
@property (nonatomic, assign, readonly, nonnull) struct arsdk_ctrl *ctrl;
86+
@property (nonatomic, assign, readonly, nonnull) struct arsdk_ctrl *ctrl NS_RETURNS_INNER_POINTER;
10387

10488
/**
10589
Constructor

SdkCore.framework/Headers/ArsdkFeatureAlarms.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,11 @@ typedef NS_ENUM(NSInteger, ArsdkFeatureAlarmsTakeoffChecklistType) {
105105
/** Magneto calibration check. */
106106
ArsdkFeatureAlarmsTakeoffChecklistTypeMagnetoCalibration = 16,
107107

108+
/** Battery lost comm. */
109+
ArsdkFeatureAlarmsTakeoffChecklistTypeBatteryLostComm = 17,
110+
108111
};
109-
#define ArsdkFeatureAlarmsTakeoffChecklistTypeCnt 17
112+
#define ArsdkFeatureAlarmsTakeoffChecklistTypeCnt 18
110113

111114
/** Alarm state. */
112115
typedef NS_ENUM(NSInteger, ArsdkFeatureAlarmsState) {

SdkCore.framework/Headers/ArsdkFeatureArdrone3Pilotingstate.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,17 @@ typedef NS_ENUM(NSInteger, ArsdkFeatureArdrone3PilotingstateForcedlandingautotri
368368
/** Battery will soon be critical, so forced landing auto trigger is planned. */
369369
ArsdkFeatureArdrone3PilotingstateForcedlandingautotriggerReasonBatteryCriticalSoon = 1,
370370

371+
/** Propellers are critically iced, so forced landing auto trigger is planned. */
372+
ArsdkFeatureArdrone3PilotingstateForcedlandingautotriggerReasonPropellerIcingCritical = 2,
373+
374+
/** Battery is too cold, so forced landing auto trigger is planned. */
375+
ArsdkFeatureArdrone3PilotingstateForcedlandingautotriggerReasonBatteryTooCold = 3,
376+
377+
/** Battery is too hot, so forced landing auto trigger is planned. */
378+
ArsdkFeatureArdrone3PilotingstateForcedlandingautotriggerReasonBatteryTooHot = 4,
379+
371380
};
372-
#define ArsdkFeatureArdrone3PilotingstateForcedlandingautotriggerReasonCnt 2
381+
#define ArsdkFeatureArdrone3PilotingstateForcedlandingautotriggerReasonCnt 5
373382

374383
/** Drone wind state */
375384
typedef NS_ENUM(NSInteger, ArsdkFeatureArdrone3PilotingstateWindstatechangedState) {

SdkCore.framework/Headers/ArsdkFeatureBattery.h

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ typedef NS_ENUM(NSInteger, ArsdkFeatureBatteryAlert) {
3030
/** Authentication has failed. */
3131
ArsdkFeatureBatteryAlertAuthenticationFailure = 4,
3232

33+
/** Lost comm with battery. */
34+
ArsdkFeatureBatteryAlertLostComm = 5,
35+
3336
};
34-
#define ArsdkFeatureBatteryAlertCnt 5
37+
#define ArsdkFeatureBatteryAlertCnt 6
3538

3639
/** Alert level. */
3740
typedef NS_ENUM(NSInteger, ArsdkFeatureBatteryAlertLevel) {
@@ -139,6 +142,17 @@ NS_SWIFT_NAME(onCapacity(fullCharge:remaining:));
139142
- (void)onCellVoltage:(NSUInteger)index cellVoltage:(NSUInteger)cellVoltage
140143
NS_SWIFT_NAME(onCellVoltage(index:cellVoltage:));
141144

145+
/**
146+
Version of the components of the battery.
147+
148+
- parameter hw_revision: Battery Hardware Revision
149+
- parameter fw_version: Battery Firmware Version
150+
- parameter gauge_version: Battery Gauge Version
151+
- parameter usb_version: Battery USB Version
152+
*/
153+
- (void)onVersion:(NSUInteger)hwRevision fwVersion:(NSString *)fwVersion gaugeVersion:(NSString *)gaugeVersion usbVersion:(NSString *)usbVersion
154+
NS_SWIFT_NAME(onVersion(hwRevision:fwVersion:gaugeVersion:usbVersion:));
155+
142156

143157
@end
144158

SdkCore.framework/Headers/ArsdkFeatureControllerInfo.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,5 +185,14 @@ clock)
185185
+ (int (^)(struct arsdk_cmd *))gpsV2Encoder:(ArsdkFeatureControllerInfoSource)source latitude:(double)latitude longitude:(double)longitude amslAltitude:(float)amslAltitude wgs84Altitude:(float)wgs84Altitude latitudeAccuracy:(float)latitudeAccuracy longitudeAccuracy:(float)longitudeAccuracy altitudeAccuracy:(float)altitudeAccuracy northVelocity:(float)northVelocity eastVelocity:(float)eastVelocity upVelocity:(float)upVelocity velocityAccuracy:(float)velocityAccuracy numberOfSatellites:(NSUInteger)numberOfSatellites timestamp:(uint64_t)timestamp
186186
NS_SWIFT_NAME(gpsV2Encoder(source:latitude:longitude:amslAltitude:wgs84Altitude:latitudeAccuracy:longitudeAccuracy:altitudeAccuracy:northVelocity:eastVelocity:upVelocity:velocityAccuracy:numberOfSatellites:timestamp:));
187187

188+
/**
189+
SkyController Magneto temperature in Kelvin.
190+
191+
- parameter temp: SkyController magnetometer temperature
192+
- returns: a block that encodes the command
193+
*/
194+
+ (int (^)(struct arsdk_cmd *))magnetoTemperatureEncoder:(float)temp
195+
NS_SWIFT_NAME(magnetoTemperatureEncoder(temp:));
196+
188197
@end
189198

SdkCore.framework/Headers/ArsdkFeatureFlightPlan.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,5 +214,13 @@ This is the index of the mission item in the mission's items list, starting from
214214
+ (int (^)(struct arsdk_cmd *))startAtV2Encoder:(NSString *)flightplanId customId:(NSString *)customId type:(ArsdkFeatureFlightPlanMavlinkType)type item:(NSUInteger)item continueOnDisconnect:(NSUInteger)continueOnDisconnect
215215
NS_SWIFT_NAME(startAtV2Encoder(flightplanId:customId:type:item:continueOnDisconnect:));
216216

217+
/**
218+
Start flightplan pre-configuration
219+
220+
- returns: a block that encodes the command
221+
*/
222+
+ (int (^)(struct arsdk_cmd *))preConfigEncoder
223+
NS_SWIFT_NAME(preConfigEncoder());
224+
217225
@end
218226

SdkCore.framework/Headers/ArsdkFeatureRth.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,11 @@ typedef NS_ENUM(NSInteger, ArsdkFeatureRthStateReason) {
104104
/** Return to home triggered by propeller icing event (available->in_progress) */
105105
ArsdkFeatureRthStateReasonIcing = 9,
106106

107+
/** Return to home triggered by battery lost comm event (available->in_progress) */
108+
ArsdkFeatureRthStateReasonBatteryLostComm = 10,
109+
107110
};
108-
#define ArsdkFeatureRthStateReasonCnt 10
111+
#define ArsdkFeatureRthStateReasonCnt 11
109112

110113
/** Home reachability */
111114
typedef NS_ENUM(NSInteger, ArsdkFeatureRthHomeReachability) {

0 commit comments

Comments
 (0)