mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
Replaced .h C headers with c-prefixed version and added std:: prefix to C standard library usage (#90)
This was not done to stdint.h for brevity in type names. Also removed "using namespace std;".
This commit is contained in:
committed by
Peter Johnson
parent
776a991d61
commit
5a82f73d9b
@@ -162,12 +162,7 @@ void PWM::SetPosition(float pos) {
|
||||
// converting to int
|
||||
unsigned short rawValue =
|
||||
(int32_t)((pos * (float)GetFullRangeScaleFactor()) + GetMinNegativePwm());
|
||||
// printf("MinNegPWM: %d FullRangeScaleFactor: %d Raw value: %5d Input "
|
||||
// "value: %4.4f\n", GetMinNegativePwm(), GetFullRangeScaleFactor(), rawValue,
|
||||
// pos);
|
||||
|
||||
// wpi_assert((rawValue >= GetMinNegativePwm()) && (rawValue <=
|
||||
// GetMaxPositivePwm()));
|
||||
wpi_assert(rawValue != kPwmDisabled);
|
||||
|
||||
// send the computed pwm value to the FPGA
|
||||
|
||||
Reference in New Issue
Block a user