Change the HoTT telemetry update to 5hz.

This commit is contained in:
Dominic Clifton 2014-05-24 00:07:22 +01:00
parent 1925df26ca
commit 7c48eb9487
1 changed files with 2 additions and 2 deletions

View File

@ -280,7 +280,7 @@ void configureHoTTTelemetryPort(void)
} }
#define CYCLETIME_50_HZ ((1000 * 1000) / 50) #define CYCLETIME_5_HZ ((1000 * 1000) / 5)
#define HOTT_RX_SCHEDULE 4000 #define HOTT_RX_SCHEDULE 4000
#define HOTTV4_TX_DELAY_US 3000 #define HOTTV4_TX_DELAY_US 3000
@ -423,7 +423,7 @@ void hottSendTelemetryData(void) {
bool shouldPrepareHoTTMessage(uint32_t currentMicros) bool shouldPrepareHoTTMessage(uint32_t currentMicros)
{ {
return currentMicros - lastMessagePreparedAt >= CYCLETIME_50_HZ; return currentMicros - lastMessagePreparedAt >= CYCLETIME_5_HZ;
} }
bool shouldCheckForHoTTRequest() bool shouldCheckForHoTTRequest()