reapply clang format
This commit is contained in:
hal/src/fsfw_hal
common
devicehandlers
GyroL3GD20Handler.cppGyroL3GD20Handler.hMgmLIS3MDLHandler.cppMgmLIS3MDLHandler.hMgmRM3100Handler.cppMgmRM3100Handler.h
devicedefinitions
linux
stm32h7
src/fsfw
action.h
action
ActionHelper.cppActionHelper.hActionMessage.cppActionMessage.hCommandActionHelper.cppCommandActionHelper.hCommandsActionsIF.hHasActionsIF.hSimpleActionHelper.cppSimpleActionHelper.h
cfdp
CFDPHandler.cppCFDPHandler.hCFDPMessage.cppCFDPMessage.hFileSize.hdefinitions.h
pdu
AckInfo.cppAckInfo.hAckPduDeserializer.cppAckPduDeserializer.hAckPduSerializer.cppAckPduSerializer.hEofInfo.cppEofInfo.hEofPduDeserializer.cppEofPduDeserializer.hEofPduSerializer.cppEofPduSerializer.hFileDataDeserializer.cppFileDataDeserializer.hFileDataInfo.cppFileDataInfo.hFileDataSerializer.cppFileDataSerializer.hFileDirectiveDeserializer.cppFileDirectiveDeserializer.hFileDirectiveSerializer.cppFileDirectiveSerializer.hFinishedInfo.cppFinishedInfo.hFinishedPduDeserializer.cppFinishedPduDeserializer.hFinishedPduSerializer.cppFinishedPduSerializer.hHeaderDeserializer.cppHeaderDeserializer.hHeaderSerializer.cppHeaderSerializer.hKeepAlivePduDeserializer.cppKeepAlivePduDeserializer.hKeepAlivePduSerializer.cppKeepAlivePduSerializer.hMetadataInfo.cppMetadataInfo.hMetadataPduDeserializer.cppMetadataPduDeserializer.hMetadataPduSerializer.cppMetadataPduSerializer.hNakInfo.cppNakInfo.hNakPduDeserializer.cppNakPduDeserializer.hNakPduSerializer.cppNakPduSerializer.hPduConfig.cppPduConfig.hPduHeaderIF.hPromptPduDeserializer.cppPromptPduDeserializer.hPromptPduSerializer.cppPromptPduSerializer.hVarLenField.cppVarLenField.h
tlv
container
ArrayList.hBinaryTree.hDynamicFIFO.hFIFO.hFIFOBase.hFixedArrayList.hFixedMap.hFixedOrderedMultimap.hHybridIterator.hIndexedRingMemoryArray.hPlacementFactory.hRingBufferBase.hSharedRingBuffer.cppSharedRingBuffer.hSimpleRingBuffer.cppSimpleRingBuffer.hSinglyLinkedList.hgroup.h
controller
coordinates
CoordinateTransformations.cppCoordinateTransformations.hJgm3Model.hSgp4Propagator.cppSgp4Propagator.h
datalinklayer
BCFrame.hCCSDSReturnValuesIF.hClcw.cppClcw.hClcwIF.hDataLinkLayer.cppDataLinkLayer.hFarm1StateIF.hFarm1StateLockout.cppFarm1StateLockout.hFarm1StateOpen.cppFarm1StateOpen.hFarm1StateWait.cppFarm1StateWait.hMapPacketExtraction.cppMapPacketExtraction.hMapPacketExtractionIF.hTcTransferFrame.cppTcTransferFrame.hTcTransferFrameLocal.cppTcTransferFrameLocal.hVirtualChannelReception.cppVirtualChannelReception.hVirtualChannelReceptionIF.h
datapool
DataSetIF.hHkSwitchHelper.cppHkSwitchHelper.hPoolDataSetBase.cppPoolDataSetBase.hPoolDataSetIF.hPoolEntry.cppPoolEntry.hPoolEntryIF.hPoolReadGuard.hPoolVarList.hPoolVariableIF.hReadCommitIF.hReadCommitIFAttorney.hSharedDataSetIF.h
datapoollocal.hdatapoollocal
AccessLocalPoolF.hHasLocalDataPoolIF.hLocalDataPoolManager.cppLocalDataPoolManager.hLocalDataSet.cppLocalDataSet.hLocalPoolDataSetBase.cppLocalPoolDataSetBase.hLocalPoolObjectBase.cppLocalPoolObjectBase.hLocalPoolVariable.hLocalPoolVector.hMarkChangedIF.hProvidesDataPoolSubscriptionIF.hSharedLocalDataSet.cppSharedLocalDataSet.hStaticLocalDataSet.h
internal
HasLocalDpIFManagerAttorney.cppHasLocalDpIFManagerAttorney.hHasLocalDpIFUserAttorney.cppHasLocalDpIFUserAttorney.hLocalDpManagerAttorney.hLocalPoolDataSetAttorney.h
localPoolDefinitions.hdevicehandlers
AcceptsDeviceResponsesIF.hAssemblyBase.cppAssemblyBase.hChildHandlerBase.cppChildHandlerBase.hChildHandlerFDIR.cppChildHandlerFDIR.hCookieIF.hDeviceCommunicationIF.hDeviceHandlerBase.cppDeviceHandlerBase.hDeviceHandlerFailureIsolation.cppDeviceHandlerFailureIsolation.hDeviceHandlerIF.hDeviceHandlerMessage.cppDeviceHandlerMessage.hDeviceHandlerThermalSet.hDeviceTmReportingWrapper.cppDeviceTmReportingWrapper.hHealthDevice.cppHealthDevice.h
events
Event.hEventManager.cppEventManager.hEventManagerIF.hEventMessage.cppEventMessage.hEventReportingProxyIF.h
eventmatching
EventIdRangeMatcher.cppEventIdRangeMatcher.hEventMatchTree.cppEventMatchTree.hEventRangeMatcherBase.hReporterRangeMatcher.cppReporterRangeMatcher.hSeverityRangeMatcher.cppSeverityRangeMatcher.heventmatching.h
fwSubsystemIdRanges.hfdir
ConfirmsFailuresIF.hEventCorrelation.cppEventCorrelation.hFailureIsolationBase.cppFailureIsolationBase.hFaultCounter.cppFaultCounter.h
globalfunctions
AsciiConverter.cppAsciiConverter.hCRC.cppCRC.hDleEncoder.cppDleEncoder.hPeriodicOperationDivider.cppPeriodicOperationDivider.hType.cppType.harrayprinter.cpparrayprinter.hbitutility.cppbitutility.hconstants.h
matching
math
sign.htimevalOperations.cpptimevalOperations.hhealth
HasHealthIF.hHealthHelper.cppHealthHelper.hHealthMessage.cppHealthMessage.hHealthTable.cppHealthTable.hHealthTableIF.hManagesHealthIF.h
housekeeping
AcceptsHkPacketsIF.hHousekeepingMessage.cppHousekeepingMessage.hHousekeepingPacketDownlink.hHousekeepingSetPacket.hHousekeepingSnapshot.hPeriodicHousekeepingHelper.cppPeriodicHousekeepingHelper.h
internalerror
ipc
CommandMessage.cppCommandMessage.hCommandMessageCleaner.cppCommandMessageCleaner.hCommandMessageIF.hFwMessageTypes.hMessageQueueIF.hMessageQueueMessage.cppMessageQueueMessage.hMessageQueueMessageIF.hMessageQueueSenderIF.hMutexFactory.hMutexGuard.hMutexIF.hQueueFactory.h
memory
AcceptsMemoryMessagesIF.hFileSystemArgsIF.hGenericFileSystemMessage.cppGenericFileSystemMessage.hHasFileSystemIF.hHasMemoryIF.hMemoryHelper.cppMemoryHelper.hMemoryMessage.cppMemoryMessage.h
modes
monitoring
AbsLimitMonitor.hHasMonitorsIF.hLimitMonitor.hLimitViolationReporter.cppLimitViolationReporter.hMonitorBase.hMonitorReporter.hMonitoringIF.hMonitoringMessage.cppMonitoringMessage.hMonitoringMessageContent.hReceivesMonitoringReportsIF.hTriplexMonitor.hTwoValueLimitMonitor.h
objectmanager
ObjectManager.cppObjectManager.hObjectManagerIF.hSystemObject.cppSystemObject.hSystemObjectIF.hframeworkObjects.h
osal
Endiness.hInternalErrorCodes.h
common
TcpIpBase.cppTcpIpBase.hTcpTmTcBridge.cppTcpTmTcBridge.hTcpTmTcServer.cppTcpTmTcServer.hUdpTcPollingTask.cppUdpTcPollingTask.hUdpTmTcBridge.cppUdpTmTcBridge.htcpipCommon.cpptcpipCommon.htcpipHelpers.h
freertos
BinSemaphUsingTask.cppBinSemaphUsingTask.hBinarySemaphore.cppBinarySemaphore.hClock.cppCountingSemaphUsingTask.cppCountingSemaphUsingTask.hCountingSemaphore.cppCountingSemaphore.hFixedTimeslotTask.cppFixedTimeslotTask.hFreeRTOSTaskIF.hMessageQueue.cppMessageQueue.hMutex.cppMutex.hMutexFactory.cppPeriodicTask.cppPeriodicTask.hQueueFactory.cppQueueMapManager.cppQueueMapManager.hSemaphoreFactory.cppTaskFactory.cppTaskManagement.cppTaskManagement.hTimekeeper.cppTimekeeper.h
host
Clock.cppFixedTimeslotTask.cppFixedTimeslotTask.hMessageQueue.cppMessageQueue.hMutex.cppMutex.hMutexFactory.cppPeriodicTask.cppPeriodicTask.hQueueFactory.cppQueueMapManager.cppQueueMapManager.hSemaphoreFactory.cppTaskFactory.cpptaskHelpers.cpptaskHelpers.h
linux
BinarySemaphore.cppBinarySemaphore.hClock.cppCountingSemaphore.cppCountingSemaphore.hFixedTimeslotTask.cppFixedTimeslotTask.hInternalErrorCodes.cppMessageQueue.cppMessageQueue.hMutex.cppMutex.hMutexFactory.cppPeriodicPosixTask.cppPeriodicPosixTask.hPosixThread.cppPosixThread.hQueueFactory.cppSemaphoreFactory.cppTaskFactory.cpptcpipHelpers.cppunixUtility.cppunixUtility.h
rtems
BinarySemaphore.cppBinarySemaphore.hClock.cppCpuUsage.cppCpuUsage.hFixedTimeslotTask.cppFixedTimeslotTask.hInitTask.cppInitTask.hInternalErrorCodes.cppMessageQueue.cppMessageQueue.hMutex.cppMutex.hMutexFactory.cppPeriodicTask.cppPeriodicTask.hQueueFactory.cppRTEMSTaskBase.cppRTEMSTaskBase.hRtemsBasic.hSemaphoreFactory.cppTaskFactory.cpp
windows
parameters
HasParametersIF.hParameterHelper.cppParameterHelper.hParameterMessage.cppParameterMessage.hParameterWrapper.cppParameterWrapper.hReceivesParameterMessagesIF.h
power
Fuse.cppFuse.hPowerComponent.cppPowerComponent.hPowerComponentIF.hPowerSensor.cppPowerSensor.hPowerSwitchIF.hPowerSwitcher.cppPowerSwitcher.h
pus
CService200ModeCommanding.cppCService200ModeCommanding.hCService201HealthCommanding.cppCService201HealthCommanding.hService17Test.cppService17Test.hService1TelecommandVerification.cppService1TelecommandVerification.hService20ParameterManagement.cppService20ParameterManagement.hService2DeviceAccess.cppService2DeviceAccess.hService3Housekeeping.cppService3Housekeeping.hService5EventReporting.cppService5EventReporting.hService8FunctionManagement.cppService8FunctionManagement.hService9TimeManagement.cppService9TimeManagement.h
servicepackets
returnvalues
rmap
RMAP.cppRMAP.hRMAPChannelIF.hRMAPCookie.cppRMAPCookie.hRmapDeviceCommunicationIF.cppRmapDeviceCommunicationIF.hrmapStructs.h
serialize.hserialize
EndianConverter.hSerialArrayListAdapter.hSerialBufferAdapter.cppSerialBufferAdapter.hSerialFixedArrayListAdapter.hSerialLinkedListAdapter.hSerializeAdapter.hSerializeElement.hSerializeIF.h
serviceinterface
ServiceInterfaceBuffer.cppServiceInterfaceBuffer.hServiceInterfacePrinter.cppServiceInterfacePrinter.hServiceInterfaceStream.cppServiceInterfaceStream.hserviceInterfaceDefintions.h
storagemanager
ConstStorageAccessor.cppConstStorageAccessor.hLocalPool.cppLocalPool.hPoolManager.cppPoolManager.hStorageAccessor.cppStorageAccessor.hStorageManagerIF.hstoreAddress.h
subsystem
tasks
ExecutableObjectIF.hFixedSequenceSlot.cppFixedSequenceSlot.hFixedSlotSequence.cppFixedSlotSequence.hFixedTimeslotTaskIF.hPeriodicTaskIF.hSemaphoreFactory.hSemaphoreIF.hTaskFactory.hTypedef.h
tcdistribution
CCSDSDistributor.cppCCSDSDistributor.hCCSDSDistributorIF.hCFDPDistributor.cppCFDPDistributor.hCFDPDistributorIF.hPUSDistributor.cppPUSDistributor.hPUSDistributorIF.hTcDistributor.cppTcDistributor.hTcPacketCheckCFDP.cppTcPacketCheckCFDP.hTcPacketCheckIF.hTcPacketCheckPUS.cppTcPacketCheckPUS.h
thermal
AbstractTemperatureSensor.cppAbstractTemperatureSensor.hAcceptsThermalMessagesIF.hHeater.cppHeater.hRedundantHeater.cppRedundantHeater.hTemperatureSensor.hThermalComponent.cppThermalComponent.hThermalComponentCore.cppThermalComponentCore.hThermalComponentIF.hThermalModule.cppThermalModule.hThermalModuleIF.hThermalMonitorReporter.cppThermalMonitorReporter.h
timemanager
CCSDSTime.cppCCSDSTime.hClock.hClockCommon.cppCountdown.cppCountdown.hReceivesTimeInfoIF.hStopwatch.cppStopwatch.hTimeMessage.cppTimeMessage.hTimeStamper.cppTimeStamper.hTimeStamperIF.h
tmstorage
tmtcpacket
RedirectableDataPointerIF.hSpacePacket.cppSpacePacket.hSpacePacketBase.cppSpacePacketBase.hccsds_header.h
cfdp
packetmatcher
pus
tmtcservices
AcceptsTelecommandsIF.hAcceptsTelemetryIF.hAcceptsVerifyMessageIF.hCommandingServiceBase.cppCommandingServiceBase.hPusServiceBase.cppPusServiceBase.hPusVerificationReport.cppPusVerificationReport.hSourceSequenceCounter.hSpacePacketParser.cppSpacePacketParser.hTmTcBridge.cppTmTcBridge.hTmTcMessage.cppTmTcMessage.hVerificationCodes.hVerificationReporter.cppVerificationReporter.h
tests/src/fsfw_tests
integration
assemblies
controller
devices
TestCookie.cppTestCookie.hTestDeviceHandler.cppTestDeviceHandler.hTestEchoComIF.cppTestEchoComIF.h
devicedefinitions
task
internal
InternalUnitTester.cppInternalUnitTester.hUnittDefinitions.cppUnittDefinitions.h
globalfunctions
osal
serialize
unit
CatchDefinitions.cppCatchDefinitions.hCatchFactory.cppCatchFactory.hCatchRunner.cppCatchRunner.hCatchSetup.cpp
action
cfdp
testAckPdu.cpptestCfdp.cpptestEofPdu.cpptestFileData.cpptestFinishedPdu.cpptestKeepAlivePdu.cpptestMetadataPdu.cpptestNakPdu.cpptestPromptPdu.cpptestTlvsLvs.cpp
container
RingBufferTest.cppTestArrayList.cppTestDynamicFifo.cppTestFifo.cppTestFixedArrayList.cppTestFixedMap.cppTestFixedOrderedMultimap.cppTestPlacementFactory.cpp
datapoollocal
DataSetTest.cppLocalPoolManagerTest.cppLocalPoolOwnerBase.cppLocalPoolOwnerBase.hLocalPoolVariableTest.cppLocalPoolVectorTest.cpp
globalfunctions
hal
mocks
osal
printChar.cppprintChar.hserialize
storagemanager
testcfg
devices
events
ipc
objects
pollingsequence
returnvalues
tmtc
testtemplate
timemanager
tmtcpacket
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <fsfw/datapoollocal/StaticLocalDataSet.h>
|
||||
#include <fsfw/devicehandlers/DeviceHandlerIF.h>
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace L3GD20H {
|
||||
@@ -36,8 +37,8 @@ static constexpr uint8_t SET_Z_ENABLE = 1 << 2;
|
||||
static constexpr uint8_t SET_X_ENABLE = 1 << 1;
|
||||
static constexpr uint8_t SET_Y_ENABLE = 1;
|
||||
|
||||
static constexpr uint8_t CTRL_REG_1_VAL = SET_POWER_NORMAL_MODE | SET_Z_ENABLE |
|
||||
SET_Y_ENABLE | SET_X_ENABLE;
|
||||
static constexpr uint8_t CTRL_REG_1_VAL =
|
||||
SET_POWER_NORMAL_MODE | SET_Z_ENABLE | SET_Y_ENABLE | SET_X_ENABLE;
|
||||
|
||||
/* Register 2 */
|
||||
static constexpr uint8_t EXTERNAL_EDGE_ENB = 1 << 7;
|
||||
@@ -104,40 +105,29 @@ static constexpr DeviceCommandId_t READ_CTRL_REGS = 2;
|
||||
|
||||
static constexpr uint32_t GYRO_DATASET_ID = READ_REGS;
|
||||
|
||||
enum GyroPoolIds: lp_id_t {
|
||||
ANG_VELOC_X,
|
||||
ANG_VELOC_Y,
|
||||
ANG_VELOC_Z,
|
||||
TEMPERATURE
|
||||
enum GyroPoolIds : lp_id_t { ANG_VELOC_X, ANG_VELOC_Y, ANG_VELOC_Z, TEMPERATURE };
|
||||
|
||||
} // namespace L3GD20H
|
||||
|
||||
class GyroPrimaryDataset : public StaticLocalDataSet<5> {
|
||||
public:
|
||||
/** Constructor for data users like controllers */
|
||||
GyroPrimaryDataset(object_id_t mgmId)
|
||||
: StaticLocalDataSet(sid_t(mgmId, L3GD20H::GYRO_DATASET_ID)) {
|
||||
setAllVariablesReadOnly();
|
||||
}
|
||||
|
||||
/* Angular velocities in degrees per second (DPS) */
|
||||
lp_var_t<float> angVelocX = lp_var_t<float>(sid.objectId, L3GD20H::ANG_VELOC_X, this);
|
||||
lp_var_t<float> angVelocY = lp_var_t<float>(sid.objectId, L3GD20H::ANG_VELOC_Y, this);
|
||||
lp_var_t<float> angVelocZ = lp_var_t<float>(sid.objectId, L3GD20H::ANG_VELOC_Z, this);
|
||||
lp_var_t<float> temperature = lp_var_t<float>(sid.objectId, L3GD20H::TEMPERATURE, this);
|
||||
|
||||
private:
|
||||
friend class GyroHandlerL3GD20H;
|
||||
/** Constructor for the data creator */
|
||||
GyroPrimaryDataset(HasLocalDataPoolIF* hkOwner)
|
||||
: StaticLocalDataSet(hkOwner, L3GD20H::GYRO_DATASET_ID) {}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
class GyroPrimaryDataset: public StaticLocalDataSet<5> {
|
||||
public:
|
||||
|
||||
/** Constructor for data users like controllers */
|
||||
GyroPrimaryDataset(object_id_t mgmId):
|
||||
StaticLocalDataSet(sid_t(mgmId, L3GD20H::GYRO_DATASET_ID)) {
|
||||
setAllVariablesReadOnly();
|
||||
}
|
||||
|
||||
/* Angular velocities in degrees per second (DPS) */
|
||||
lp_var_t<float> angVelocX = lp_var_t<float>(sid.objectId,
|
||||
L3GD20H::ANG_VELOC_X, this);
|
||||
lp_var_t<float> angVelocY = lp_var_t<float>(sid.objectId,
|
||||
L3GD20H::ANG_VELOC_Y, this);
|
||||
lp_var_t<float> angVelocZ = lp_var_t<float>(sid.objectId,
|
||||
L3GD20H::ANG_VELOC_Z, this);
|
||||
lp_var_t<float> temperature = lp_var_t<float>(sid.objectId,
|
||||
L3GD20H::TEMPERATURE, this);
|
||||
private:
|
||||
|
||||
friend class GyroHandlerL3GD20H;
|
||||
/** Constructor for the data creator */
|
||||
GyroPrimaryDataset(HasLocalDataPoolIF* hkOwner):
|
||||
StaticLocalDataSet(hkOwner, L3GD20H::GYRO_DATASET_ID) {}
|
||||
};
|
||||
|
||||
|
||||
#endif /* MISSION_DEVICES_DEVICEDEFINITIONS_GYROL3GD20DEFINITIONS_H_ */
|
||||
|
Reference in New Issue
Block a user