Subversion Repositories Projects

Rev

Rev 222 | Rev 224 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 222 Rev 223
Line 34... Line 34...
34
    public int angle_roll=-4242;
34
    public int angle_roll=-4242;
35
    public byte bl_retrys=0;
35
    public byte bl_retrys=0;
36
    public boolean init_bootloader=false;
36
    public boolean init_bootloader=false;
Line 37... Line 37...
37
 
37
 
38
    public byte lib_version_major=0;
38
    public byte lib_version_major=0;
Line 39... Line 39...
39
    public byte lib_version_minor=3;
39
    public byte lib_version_minor=4;
40
 
40
 
41
    public String lib_version_str()
41
    public String lib_version_str()
42
    {
42
    {
Line 511... Line 511...
511
    {
511
    {
512
        send_command(FC_SLAVE_ADDR,'p');
512
        send_command(FC_SLAVE_ADDR,'p');
513
    }
513
    }
Line 514... Line 514...
514
 
514
 
515
 
515
 
516
    public void write_params()
516
    public void write_params(int to)
517
    {
517
    {
518
        params.update_backup();
518
        params.update_backup(to);
519
        wait4send();
519
        wait4send();
Line 520... Line 520...
520
        send_command(FC_SLAVE_ADDR,'s',params.field_bak[params.act_paramset]);
520
        send_command(FC_SLAVE_ADDR,'s',params.field_bak[to]);
521
    }
521
    }
522
 
522
 
Line 679... Line 679...
679
                version.set_by_mk_data(Decode64(data,3,len-3));
679
                version.set_by_mk_data(Decode64(data,3,len-3));
680
                break;
680
                break;
Line 681... Line 681...
681
 
681
 
682
            case 'w':
682
            case 'w':
683
                int[] dec=Decode64(data,3,len-3);
683
                int[] dec=Decode64(data,3,len-3);
684
                angle_nick=debug_data.parse_signed_int_2(dec[0],dec[1]);
684
                angle_nick=MKHelper.parse_signed_int_2(dec[0],dec[1]);
685
                angle_roll=debug_data.parse_signed_int_2(dec[2],dec[3]);
685
                angle_roll=MKHelper.parse_signed_int_2(dec[2],dec[3]);
Line 686... Line 686...
686
                stats.angle_data_count++;
686
                stats.angle_data_count++;