aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Control
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-05-17 17:34:44 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-05-17 17:34:44 +0300
commitede7471b32b1157ee932fa8f6e7918b8f147b36e (patch)
tree831dfeb19a1e8941cc5b3ab1120af0e6a1130528 /Software/Embedded_SW/Embedded/Modules/Control
parent46319e63c88d7b8277f80051c499f94e1b8e18c4 (diff)
parentb9c99b358ba0124e32a12f401b7054ce1f85f18c (diff)
downloadTango-ede7471b32b1157ee932fa8f6e7918b8f147b36e.tar.gz
Tango-ede7471b32b1157ee932fa8f6e7918b8f147b36e.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Control')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
index 2fe813395..11095b757 100644
--- a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
+++ b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
@@ -218,7 +218,7 @@ int32_t MillisecReadFromMotor(TimerMotors_t MotorId, unsigned long Data, int Len
}
uint32_t MillisecLoop(uint32_t tick)
{
- TimerMotors_t Motor_i;
+ unsigned int Motor_i;
TEMPERATURE_SENSOR_ID_ENUM Sensor_i;
unsigned int MotorInfo = 0;
//call all modules Millisec functions
@@ -241,7 +241,7 @@ uint32_t MillisecLoop(uint32_t tick)
continue;
if (MotorData[Motor_i].WaitForData == true) //Read request sent, data is waiting
{
- if (MotorGetFPGAResponse(Motor_i,&MotorInfo) == OK) //got the data from the FPGA
+ if (MotorGetFPGAResponse((TimerMotors_t)Motor_i,&MotorInfo) == OK) //got the data from the FPGA
{
MotorData[Motor_i].WaitForData = false;
if (MotorData[Motor_i].Callback)
@@ -250,13 +250,13 @@ uint32_t MillisecLoop(uint32_t tick)
}
if (SpeedSetPending[Motor_i].Active == true)
{
- MotorSendFPGARequest(Motor_i,SpeedSetPending[Motor_i].Data,SpeedSetPending[Motor_i].Length);
+ MotorSendFPGARequest((TimerMotors_t)Motor_i,SpeedSetPending[Motor_i].Data,SpeedSetPending[Motor_i].Length);
if (SpeedSetPending[Motor_i].Callback)
SpeedSetPending[Motor_i].Callback(Motor_i,0);
}
else if (Mailbox_pend(MotorsMsgQ[Motor_i] , &MotorData[Motor_i], BIOS_NO_WAIT)==true)
{
- if (MotorSendFPGARequest(Motor_i,MotorData[Motor_i].Data,MotorData[Motor_i].Length) == OK) //sent the data to the FPGA
+ if (MotorSendFPGARequest((TimerMotors_t)Motor_i,MotorData[Motor_i].Data,MotorData[Motor_i].Length) == OK) //sent the data to the FPGA
{
if (MotorData[Motor_i].DataRequired == true)
{