updated data variables
This commit is contained in:
parent
2ee6bd9750
commit
3a4f46a62e
@ -17,14 +17,14 @@ namespace Assets.Scripts
|
||||
{
|
||||
UploadToElastic();
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
stringBuilder.AppendLine("Platform,ParticipantID,Angle,Distance,Time,Direction,DotName,TrialIndex,DotIndex,Timestamp");
|
||||
stringBuilder.AppendLine("Platform,ParticipantID,Angle,Distance,Time,Direction,DotName,TrialIndex,DotIndex,Timestamp,DotSize");
|
||||
Sample first = Samples[0];
|
||||
string platform = first.Platform;
|
||||
string trial = (first.TrialIndex + 1).ToString();
|
||||
string participant = first.ParticipantID.ToString();
|
||||
foreach (Sample sample in Samples)
|
||||
{
|
||||
stringBuilder.AppendLine(string.Format("{0},{1},{2},{3},{4},{5},{6},{7},{8},{9}", sample.Platform, sample.ParticipantID, sample.Angle, sample.Distance, sample.Time, sample.Direction, sample.DotName, sample.TrialIndex, sample.DotIndex, sample.Timestamp));
|
||||
stringBuilder.AppendLine(string.Format("{0},{1},{2},{3},{4},{5},{6},{7},{8},{9},{10}", sample.Platform, sample.ParticipantID, sample.Angle, sample.Distance, sample.Time, sample.Direction, sample.DotName, sample.TrialIndex, sample.DotIndex, sample.Timestamp,sample.DotSize));
|
||||
}
|
||||
string path = Path.Combine(Application.persistentDataPath, string.Format("{0}-{1}-{2}.csv",platform,participant,trial));
|
||||
using (StreamWriter streamWriter = File.CreateText(path))
|
||||
|
Loading…
Reference in New Issue
Block a user