-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzeroingutil.c
28 lines (27 loc) · 1.32 KB
/
zeroingutil.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma config(Hubs, S1, HTMotor, HTServo, HTMotor, none)
#pragma config(Sensor, S1, , sensorI2CMuxController)
#pragma config(Sensor, S2, proto, sensorI2CCustom9V)
#pragma config(Sensor, S3, gyro, sensorI2CHiTechnicGyro)
#pragma config(Motor, mtr_S1_C1_1, pod2Drive, tmotorNormal, openLoop)
#pragma config(Motor, mtr_S1_C1_2, pod3Drive, tmotorNormal, openLoop)
#pragma config(Motor, mtr_S1_C3_1, pod1Drive, tmotorNormal, openLoop)
#pragma config(Motor, mtr_S1_C3_2, pod0Drive, tmotorNormal, openLoop)
#pragma config(Servo, srvo_S1_C2_1, pod0Steer, tServoStandard)
#pragma config(Servo, srvo_S1_C2_2, pod1Steer, tServoStandard)
#pragma config(Servo, srvo_S1_C2_3, pod2Steer, tServoStandard)
#pragma config(Servo, srvo_S1_C2_4, pod3Steer, tServoStandard)
#pragma config(Servo, srvo_S1_C2_5, servo5, tServoStandard)
#pragma config(Servo, srvo_S1_C2_6, servo6, tServoNone)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
#include "drivers/HTSPB-driver.h"
task main()
{
while (true)
{
for ( int i = 0; i < 4; i++ )
{
int err = HTSPBreadADC(proto, i, 10);
nxtDisplayString(i, "%i - %i", i, err);
}
}
}