M1Power = GetValue (_BSR,1) M1Power = GetValue (_MOTPWR, 1) M2Power = GetValue (_BSR,2)M2Power = GetValue (_MOTPWR, 2) IF (abs(ILeft)<10) THEN
ILeft = 0
END IF
IF (abs(IRight)<10) THEN
IRight = 0
END IF Vitolds wrote:Will, I only have hall sensors.
TotalMotorAmps = 0
FOR (I = 1 to NumberOfReadsToAverage)
TotalMotorAmps + MotorAmps
ENDFOR
MotorAmps = TotalMotorAmps/NumberOfReadsToAverage
Measures and reports the motor Amps, in Amps*10, for all operating channels. For brushless
controllers this query reports the RMS value.
IF (abs(ILeft)<10) THEN
ILeft = 0
END IF
IF (abs(IRight)<10) THEN
IRight = 0
END IF IF (DampingMotorAmps > 1) THEN
ILeftMotorAmps[JSRead]=ILeft
IRightMotorAmps[JSRead]=IRight
JSRead = JSRead + 1
Well, and then on with the code.
LROBBINS wrote:You can use the Roborun sliders,
Return to Everything Powerchair
Users browsing this forum: LROBBINS and 530 guests