1
0
Fork 0

mark standards parameters as static

This commit is contained in:
Kevin Matz 2023-03-30 20:13:26 -04:00
parent b6e9425083
commit cd884a8593
2 changed files with 5 additions and 5 deletions

View File

@ -39,8 +39,8 @@ struct Receiver
* receiving device shall be at full (its specified maximum state, position, speed, etc.)
* with any control signal above 9.8 volts.
*/
const int16_t zero = 300; //!< upper "Zero" threshold as mV, 0.3 V
const int16_t full = 9800; //!< lower "Full" threshold as mV, 9.8 V
static const int16_t zero = 300; //!< upper "Zero" threshold as mV, 0.3 V
static const int16_t full = 9800; //!< lower "Full" threshold as mV, 9.8 V
/**
* @brief Convert millivolts to an 8-bit level.

View File

@ -37,9 +37,9 @@ struct Transmitter
* Zero volts shall represent the full off condition and ten volts shall represent the
* full on condition.
*/
const int16_t zero = 0; //!< mV, 0.0 V
const int16_t zero_max = 200; //!< mv, 0.2 V
const int16_t full = 10000; //!< mV, 10.0 V
static const int16_t zero = 0; //!< mV, 0.0 V
static const int16_t zero_max = 200; //!< mv, 0.2 V
static const int16_t full = 10000; //!< mV, 10.0 V
/**
* @brief Convert an 8-bit level to millivolts.