1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-24 00:35:34 +03:00

Merge pull request #8281 from JulioCesarMatias/DropOldHIL

Drop the old HIL
This commit is contained in:
Paweł Spychalski 2022-09-06 08:17:27 +02:00 committed by GitHub
commit ef1c20fce0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 1 additions and 184 deletions

View file

@ -73,7 +73,6 @@
#include "flight/failsafe.h"
#include "flight/imu.h"
#include "flight/hil.h"
#include "flight/mixer.h"
#include "flight/pid.h"
#include "flight/servos.h"
@ -402,15 +401,6 @@ static bool mspFcProcessOutCommand(uint16_t cmdMSP, sbuf_t *dst, mspPostProcessF
sbufWriteData(dst, shortGitRevision, GIT_SHORT_REVISION_LENGTH);
break;
#ifdef HIL
case MSP_HIL_STATE:
sbufWriteU16(dst, hilToSIM.pidCommand[ROLL]);
sbufWriteU16(dst, hilToSIM.pidCommand[PITCH]);
sbufWriteU16(dst, hilToSIM.pidCommand[YAW]);
sbufWriteU16(dst, hilToSIM.pidCommand[THROTTLE]);
break;
#endif
case MSP_SENSOR_STATUS:
sbufWriteU8(dst, isHardwareHealthy() ? 1 : 0);
sbufWriteU8(dst, getHwGyroStatus());