Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michel Roelofs
dt_ctrl
Commits
c54185dd
Commit
c54185dd
authored
Oct 01, 2018
by
Jeroen Vreeken
Browse files
Fix testcases and hex values.
parent
ff1ab1c4
Changes
4
Hide whitespace changes
Inline
Side-by-side
controller/block/block_setpoint_generator_3d.test.ctrl
View file @
c54185dd
...
...
@@ -65,7 +65,6 @@ params {
{ "command", "command", "spg", $[SPEED], 201, -33.0 }
{ "command", "command", "spg", $[SPEED], 201, -33.0 }
{ "command", "command", "spg", $[SPEED], 201, -33.0 }
{ "command", "command", "spg", $[SPEED], 201, -33.0 }
{ "command", "command", "spg", $[SETPOINT_TRACK], 301, 999.0 }
{ "reset", "value", 12,
...
...
@@ -125,7 +124,7 @@ params {
{ "id", "value", 22,
(int) { (int)0xffffffff, 123, 123, 123, 123, 123, 124, 125, 126, 200,
(int)0xffffffff,
201
, 201, 201, 201, 201, 201, 201, 201, 201,
(int)0xffffffff,
127
, 201, 201, 201, 201, 201, 201, 201, 201,
301, (int)0xffffffff }
}
}
...
...
controller/controller/controller_load_parser.l
View file @
c54185dd
...
...
@@ -60,7 +60,7 @@ double {doublesimple}|{doubleexp}
int {number}+
unsignedlong ("0x"|"0X"){hexdigit}{
5
,}
unsignedlong ("0x"|"0X"){hexdigit}{
1
,}
floatcast "("[ \t]*"float"[ \t]*")"
doublecast "("[ \t]*"double"[ \t]*")"
...
...
@@ -165,3 +165,6 @@ boolcast "("[ \t]*"bool"[ \t]*")"
%%
int yywrap(yyscan_t scanner) { return 1; }
/* Dummy reference to prevent 'unused' errors */
void *controller_load_parser_l_dummy[] = { yy_fatal_error };
controller/packet/packet.test.ctrl
View file @
c54185dd
...
...
@@ -7,7 +7,7 @@ blocks (1.0, 0.0) {
{ "packet_sim", "packet" }
{ "packet_out_bool_byte", "bool4", "packet", 4 }
{ "packet_out_float_be", "float0", "packet", 0 }
{ "packet_in_float_be", "float32", "packet", 0x20 }
{ "packet_in_float_be", "float32", "packet",
(int)
0x20 }
{ "test_input_bool", "test_bool" }
{ "test_input_float", "test_float" }
...
...
controller/packet/packet_eth.ctrl
View file @
c54185dd
...
...
@@ -12,6 +12,7 @@ blocks (100.0, 0.0) {
{ "packet_in_float_be", "positionff", "packet", 16 }
{ "packet_in_float_be", "pid", "packet", 20 }
{ "packet_in_float_be", "motor_I", "packet", 24 }
{ "packet_in_bool_byte", "homed", "packet", 28 }
# { "debug", "debug_position" }
# { "debug", "debug_stick" }
# { "debug", "debug_speed" }
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment