コード例 #1
0
ファイル: DBStatsCollector.cs プロジェクト: Spawek/valeo
        public static void AddNewDataToDB(
            double? curr_speed, double? target_speed, double? speed_steering,
            double? curr_angle, double? target_angle, double? angle_steering,
            double? curr_brake, double? target_brake, double? brake_steering)
        {
            log log = new log();

            log.datetime = DateTime.Now;

            log.current_speed = curr_speed;
            log.target_speed = target_speed;
            log.speed_steering = speed_steering;

            log.current_angle = curr_angle;
            log.target_angle = target_angle;
            log.angle_steering = angle_steering;

            log.current_brake = curr_brake;
            log.target_brake = target_brake;
            log.brake_steering = brake_steering;

            db.logs.InsertOnSubmit(log);

            db.SubmitChanges();
        }
コード例 #2
0
 partial void Deletelog(log instance);
コード例 #3
0
 partial void Updatelog(log instance);
コード例 #4
0
 partial void Insertlog(log instance);
コード例 #5
0
 partial void Deletelog(log instance);
コード例 #6
0
 partial void Updatelog(log instance);
コード例 #7
0
 partial void Insertlog(log instance);