Beispiel #1
0
        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();
        }
 partial void Deletelog(log instance);
 partial void Updatelog(log instance);
 partial void Insertlog(log instance);
Beispiel #5
0
 partial void Deletelog(log instance);
Beispiel #6
0
 partial void Updatelog(log instance);
Beispiel #7
0
 partial void Insertlog(log instance);