Problem with d>ofs A1 [negative ofs]
This commit is contained in:
+1
-1
@@ -140,7 +140,7 @@ uint16_t getChannelRatio(uint8_t channel)
|
|||||||
return (uint16_t)g_model.frsky.channels[channel].ratio << g_model.frsky.channels[channel].multiplier;
|
return (uint16_t)g_model.frsky.channels[channel].ratio << g_model.frsky.channels[channel].multiplier;
|
||||||
}
|
}
|
||||||
|
|
||||||
int16_t applyChannelRatio(uint8_t channel, uint8_t val)
|
int16_t applyChannelRatio(uint8_t channel, int16_t val)
|
||||||
{
|
{
|
||||||
return ((int32_t)val+g_model.frsky.channels[channel].offset) * getChannelRatio(channel) * 2 / 51;
|
return ((int32_t)val+g_model.frsky.channels[channel].offset) * getChannelRatio(channel) * 2 / 51;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -215,7 +215,7 @@ int16_t convertTelemValue(uint8_t channel, uint8_t value);
|
|||||||
NOINLINE uint8_t getRssiAlarmValue(uint8_t alarm);
|
NOINLINE uint8_t getRssiAlarmValue(uint8_t alarm);
|
||||||
|
|
||||||
extern const pm_uint8_t bchunit_ar[];
|
extern const pm_uint8_t bchunit_ar[];
|
||||||
int16_t applyChannelRatio(uint8_t channel, uint8_t val);
|
int16_t applyChannelRatio(uint8_t channel, int16_t val);
|
||||||
void putsTelemetryChannel(uint8_t x, uint8_t y, uint8_t channel, int16_t val, uint8_t att);
|
void putsTelemetryChannel(uint8_t x, uint8_t y, uint8_t channel, int16_t val, uint8_t att);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user