mirror of
https://github.com/nasa/trick.git
synced 2024-12-21 14:07:51 +00:00
Merge tag '17.0.3'
Converting units incoming from the variable server.
This commit is contained in:
commit
eaa6f796d9
@ -6,6 +6,7 @@
|
||||
#include "trick/message_proto.h"
|
||||
#include "trick/message_type.h"
|
||||
#include "trick/memorymanager_c_intf.h"
|
||||
#include "trick/map_trick_units_to_udunits.hh"
|
||||
|
||||
extern Trick::VariableServer * the_vs ;
|
||||
|
||||
@ -524,7 +525,8 @@ int var_set_base( const char * var , T value , const char * units ) {
|
||||
V_DATA v_data ;
|
||||
v_tree.v_data = &v_data ;
|
||||
var_set_value( v_data , value) ;
|
||||
ref->units = (char *)units ;
|
||||
//ref->units = (char *)units ;
|
||||
ref->units = (char *)(map_trick_units_to_udunits(units).c_str()) ;
|
||||
ref_assignment(ref , &v_tree) ;
|
||||
free(ref) ;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user