Skip to main content
Sign in
Snippets Groups Projects
Select Git revision
  • d0edc42ddae30a69860dada404936993b224fc14
  • master default
  • labcomm2014
  • labcomm2006
  • python_sig_hash
  • typedefs
  • anders.blomdell
  • typeref
  • pragma
  • compiler-refactoring
  • labcomm2013
  • v2014.6
  • v2015.0
  • v2014.5
  • v2014.4
  • v2006.0
  • v2014.3
  • v2014.2
  • v2014.1
  • v2014.0
  • v2013.0
21 results

basic.lc

Blame
  • test_gps_randomized_cycling.m 741 B
    % test case for function gps_randomized_cycling
    
    %purpose: verify that the transition turn_on is taken from initial state
    
    %oracle:  the transition brings in the state cold_start
    
    clear all             %clear workspace 
    close all
    cd ..                 %move to functions directory           
    
    %initialize input data
    sensor.state='no_info';
    sensor.fetchfp=1.0;
    sensor.geteph=Inf;
    sensor.ephExp=1800.0;
    sensor.fp=0;
    sensor.eph=5;
    turn=true;
    time=0;
    sv=5;
    %execute function
    sensor=gps_randomized_cycling(time,sensor,turn,sv);
    
    
    cd tests              %go back to tests directory
    
    %verify output
    if ~(strcmp(sensor.state,'cold_start'))
        error('error in function gps_randomized_cycling')
    else
        disp('function gps_randomized_ccycling ok')
    end